Cryptographic system, cryptographic method, and computer readable medium

ABSTRACT

It is an object to provide predicate encryption that can conceal both attribute information being set in a ciphertext and predicate information being set in a decryption key even in a public key setting. An encryption device  200  generates a ciphertext ct x  in which attribute information x is set as a basis vector of a basis D. A conversion device  300  converts with conversion information W the basis D of the ciphertext ct x  generated by the encryption device  200  to a basis B so as to generate a ciphertext CT x . A decryption device  400  decrypts the ciphertext CT x  generated by the conversion device  300  with a token tk v  in which predicate information v is set as a coefficient of a basis vector of a basis B* corresponding to the basis B.

TECHNICAL FIELD

The present invention relates to predicate encryption that can conceal both attribute information being set in a ciphertext and predicate information being set in a decryption key.

BACKGROUND ART

Non-Patent Literature 1 discusses inner-product predicate encryption that can conceal both attribute information being set in a ciphertext and predicate information being set in a decryption key in a secret key setting in which both an encryption-side key and a decryption-side key are kept secret.

CITATION LIST Non-Patent Literature

Non-Patent Literature 1: Emily Shen, Elaine Shi, and Brent Waters. Predicate privacy in encryption systems. In Omer Reingold, editor, TCC 2009, volume 5444 of LNCS, pages 457.473. Springer, 2009.

Non-Patent Literature 2: Allison B. Lewko, Tatsuaki Okamoto, Amit Sahai, Katsuyuki Takashima, and Brent Waters. Fully secure functional encryption: Attribute-based encryption and (hierarchical) inner product encryption. In Henri Gilbert, editor, EUROCRYPT 2010, volume 6110 of LNCS, pages 62.91. Springer, 2010. Full version is available at http://eprint.iacr.org/2010/110.

Non-Patent Literature 3: Okamoto, T., Takashima, K.: Achieving Short Ciphertexts or Short Secret-Keys for Adaptively Secure General Inner-Product Encryption. CANS 2011, LNCS, vol. 7092, pp. 138-159 Springer Heidelberg (2011).

Non-Patent Literature 4: Okamoto, T Takashima, K.: Fully Secure Unbounded Inner-Product and Attribute-Based Encryption. ePrint http://eprint.iacr.org/2012/671

SUMMARY OF INVENTION Technical Problem

There has been no implementation of predicate encryption that can conceal both attribute information being set in a ciphertext and predicate information being set in a decryption key in a public key setting in which an encryption-side key is made public.

It is an object of the present invention to provide predicate encryption that can conceal both attribute information being set in a ciphertext and predicate information being set in a decryption key even in the public key setting.

Solution to Problem

A cryptographic system according to the present invention includes

an encryption device to generate a ciphertext ct_(x) in which attribute information x is set as a coefficient of a basis vector of a basis D;

a conversion device to convert with conversion information W the basis D of the ciphertext ct_(x) generated by the encryption device to a basis B so as to generate a ciphertext CT_(x); and

a decryption device to decrypt the ciphertext CT_(x) generated by the conversion device with a token tk_(v) in which predicate information v is set as a coefficient of a basis vector of a basis B* corresponding to the basis B.

Advantageous Effects of Invention

By employing conversion information W and a conversion device, a cryptographic system according to the present invention can implement predicate encryption that can conceal both attribute information being set in a ciphertext and predicate information being set in a decryption key even in the public key setting.

BRIEF DESCRIPTION OF DRAWINGS

FIG. 1 is a configuration diagram of a cryptographic system 10 according to Embodiment 1;

FIG. 2 is a functional block diagram illustrating the function of a key generation device 100 according to Embodiment 1;

FIG. 3 is a functional block diagram illustrating the function of an encryption device 200 according to Embodiment 1;

FIG. 4 is a functional block diagram illustrating the function of a conversion device 300 according to Embodiment 1;

FIG. 5 is a functional block diagram illustrating the function of a decryption device 400 according to Embodiment 1;

FIG. 6 is a flowchart illustrating the process of a Setup algorithm according to Embodiment 1;

FIG. 7 is a flowchart illustrating the process of a TokenGen algorithm according to Embodiment 1;

FIG. 8 is a flowchart illustrating the process of an Enc algorithm according to Embodiment 1;

FIG. 9 is a flowchart illustrating the process of a Conv algorithm according to Embodiment 1;

FIG. 10 is a flowchart illustrating the process of a Query algorithm according to Embodiment 1;

FIG. 11 is a flowchart illustrating the process of a TokenGen algorithm according to Embodiment 3;

FIG. 12 is a configuration diagram of a secure search system 500 according to Embodiment 5;

FIG. 13 is a configuration diagram of a secure search system 500 having a configuration different from that of FIG. 12; and

FIG. 14 is a diagram illustrating an example of the hardware configuration of the key generation device 100, the encryption device 200, the conversion device 300, and the decryption device 400 presented in the above embodiments.

DESCRIPTION OF EMBODIMENTS

Notations to be used in the following description will be described.

When A is a random variable or distribution, Formula 101 denotes that y is randomly selected from A according to the distribution of A. That is, y is a random number in Formula 101.

[Formula  101] $y\overset{R}{\longleftarrow}A$

When A is a set, Formula 102 denotes that y is uniformly selected from A. That is, y is a uniform random number in Formula 102.

[Formula  102] $y\overset{U}{\longleftarrow}A$

Formula 103 denotes that y is defined, defined, or substituted by z. y:=z  [Formula 103]

When a is a fixed value, Formula 104 denotes that a machine (algorithm) A outputs a on input x. A(x)→a  [Formula 104] For example, A(x)→1

Formula 105, namely F_(q), denotes a finite field of order q.

_(q)  [Formula 105]

A vector symbol denotes a vector representation over the finite field F_(q), as indicated in Formula 106. {right arrow over (x)} denotes (x ₁ , . . . ,x _(n))ε

_(q) ^(n)  [Formula 106]

Formula 107 denotes the inner-product, indicated in Formula 109, of two vectors {right arrow over (x)} and {right arrow over (v)} indicated in Formula 108. {right arrow over (x)}·{right arrow over (ν)}  [Formula 107] {right arrow over (x)}=(x ₁ , . . . ,x _(n)), {right arrow over (ν)}=(ν₁, . . . ,ν_(n))  [Formula 108] Σ_(i=1) ^(n) x _(i)ν_(i)  [Formula 109]

Note that X^(T) denotes the transpose of a matrix X.

For a basis B and a basis B* indicated in Formula 110, Formula 111 is defined.

:=(b ₁ , . . . ,b _(N)),

:=(b* ₁ , . . . ,b* _(N))  [Formula 110]

:=Σ_(i=1) ^(N) x _(i) b _(i),

:=Σ_(i=1) ^(N) y _(i) b* _(i)  [Formula 111]

In the following description, when “δi,j” is represented as a superscript, this δi,j denotes δ_(i,j).

When “→” denoting a vector is attached to a subscript or superscript, it is meant that this “→” is attached as a superscript to the subscript or superscript.

In the following description, cryptographic processes include a key generation process, an encryption process, a conversion process, and a decryption process (query process).

Embodiment 1

Basic concepts for an inner-product predicate encryption scheme will be described first, and then an inner-product predicate encryption scheme will be described in which both attribute information being set in a ciphertext and predicate information being set in a decryption key can be concealed even in a public key setting.

First, the background to the concealment of both the attribute information being set in the ciphertext and the predicate information being set in the decryption key will be described.

Second, a space having a rich mathematical structure called “dual pairing vector spaces (DPVS)” which is a space for implementing the inner-product predicate encryption scheme will be described.

Third, a key technique for constructing the inner-product predicate encryption scheme according to Embodiment 1 will be described.

Fourth, the inner-product predicate encryption scheme according to Embodiment 1 will be described.

<1. Background>

There is a practice in which, for example, a hospital or the like accumulates the DNA information of patients in a database, and a pharmaceutical company or the like searches the database using a search query to investigate whether there is specific regularity in the DNA information of patients having a certain disease.

The DNA information of patients is private information. For pharmaceutical companies and the like, search queries need to be kept secret in the light of development strategies for pharmaceutical products.

In predicate encryption and the like, a ciphertext is generated by setting the DNA information or the like of a patient as attribute information, and a search query is generated by setting a search condition as predicate information.

However, in the conventional public key setting, there is a risk that a search condition cannot be concealed even if the DNA information of a patient can be concealed. This is because the public key setting allows a ciphertext to be freely generated based on a public key, so that it may be possible to execute a search query on the generated ciphertext and deduce a search condition which is set in the search query.

The inner-product predicate encryption scheme discussed in Non-Patent Literature 1 can conceal both the DNA information of a patient and a search condition in the secret key setting.

However, in the secret key setting, a secret key is required to generate a ciphertext, which is highly inconvenient from a practical point of view. Thus, there has been a demand for a scheme which can conceal both the DNA information of a patient and a search condition in the public key setting.

<2. Dual Pairing Vector Spaces>

The inner-product predicate encryption scheme to be described hereinafter is implemented in dual pairing vector spaces.

First, symmetric bilinear pairing groups will be described.

Symmetric bilinear pairing groups (q, G, G^(T), g, e) are a tuple of a prime q, a cyclic additive group G of order q, a cyclic multiplicative group G^(T) of order q, g≠0εG, and a polynomial-time computable nondegenerate bilinear pairing e: G×G→G_(T). The nondegenerate bilinear pairing signifies e(sg, tg)=e(g, g)^(st), and e(g, g)≠1.

In the following description, let G_(bpg) be an algorithm that takes as input 1^(λ) and outputs values of a parameter param_(G):=(q, G, G_(T), g, e) of bilinear pairing groups with a security parameter λ.

Dual pairing vector spaces will now be described.

Dual pairing vector spaces (q, V, G_(T), A, e) can be constructed by a direct product of the symmetric bilinear pairing groups (param_(G):=(q, G, G_(T), g, e)). The dual pairing vector spaces (q, V, G_(T), A, e) are a tuple of a prime q, an N-dimensional vector space V over F_(q) indicated in Formula 112, a cyclic group G_(T) of order q, and a canonical basis A:=(a₁, . . . , a_(N)) of the space V, and have the following operations (1) and (2), where a_(i) is as indicated in Formula 113.

[Formula  112] $\begin{matrix} {{??}:={\overset{\overset{N}{︷}}{{??} \times \cdots \times {??}}\left\lbrack {{Formula}\mspace{14mu} 113} \right\rbrack}} \\ {a_{i}:=\left( {\overset{\overset{i - 1}{︷}}{0,\ldots\mspace{14mu},0},g,\overset{\overset{N - i}{︷}}{0,\ldots\mspace{14mu},0}} \right)} \end{matrix}$

Operation (1): Nondegenerate Bilinear Pairing

A pairing in the space V is defined by Formula 114. e(x,y):=Π_(i=1) ^(N) e(G _(i) ,H _(i))ε

_(T)  [Formula 114] where (G ₁ , . . . ,G _(N)):=xε

, (H ₁ , . . . ,H _(N)):=yε

This is nondegenerate bilinear, that is, e(sx, ty)=e(x, y)^(st) and if e(x, y)=1 for all yεV then x=0. For all i and j, e(a_(i), a_(j))=e(g, g)^(δi,j), where δ_(i,j)=1 if i=j, and δ_(i,j)=0 if i≠j, and e(g, g)≠1εG_(T).

Operation (2): Distortion Maps

Linear transformations φ_(i,j) on the space V indicated in Formula 115 can achieve Formula 116.

[Formula  115] $\begin{matrix} {{{{If}\mspace{14mu}{\phi_{i,j}\left( a_{j} \right)}} = {a_{i}\mspace{14mu}{and}}}\mspace{14mu}{k \neq j},\mspace{14mu}{{{then}\mspace{14mu}{\phi_{i,j}\left( a_{k} \right)}} = {0.\left\lbrack {{Formula}\mspace{14mu} 116} \right\rbrack}}} \\ {{{\phi_{i,j}(x)}:=\left( {\overset{\overset{i - 1}{︷}}{0,{\ldots\mspace{14mu} 0}},g_{j},\overset{\overset{N - i}{︷}}{0,\ldots\mspace{14mu},0}} \right)}\mspace{20mu}{{{where}\mspace{14mu}\left( {g_{1},{\ldots\mspace{20mu} g_{N}}} \right)}\;:=x}} \end{matrix}$

The linear transformations φ_(i,j) will be called distortion maps.

In the following description, let G_(dpvs) be an algorithm that takes as input 1^(λ) (λεnatural number), Nεnatural number, and values of a parameter param_(G):=(q, G, G_(T), g, e) of bilinear pairing groups, and outputs values of a parameter param_(V):=(q, V, G_(T), A, e) of dual pairing vector spaces with a security parameter λ and an N-dimensional space V.

Description will be directed herein to a case where the dual pairing vector spaces are constructed using the above-described symmetric bilinear pairing groups. The dual pairing vector spaces can also be constructed using asymmetric bilinear pairing groups. The following description can easily be adapted to a case where the dual pairing vector spaces are constructed using asymmetric bilinear pairing groups.

<3. Key Technique>

To achieve the concealment of both attribute information and predicate information, a new trapdoor (conversion key W to be described later) is employed between a public key and a secret key (alternatively, between a ciphertext and a token).

First, random dual bases B and B* on dual pairing vector spaces are generated. Then, using the conversion key W which is a random matrix, a subbasis B^ of the basis B is linearly transformed to generate a new basis D^ (:=B^·W). The basis D^ is uniformly and independently distributed from the basis B. Then, the basis D^ is output as the public key, and a subbasis B*^ of the basis B* is output as the secret key. The basis D^ and the basis B*^ are independent from each other if W is not considered.

An original ciphertext generated by an encrypting party and a token for search inherit this independence property from the key pair.

Using the trapdoor W (conversion key W), an intermediary different from the encrypting party converts the original ciphertext to a searchable ciphertext which is related to the token through the dual orthonormal property of the bases B and B*. Then, the converted ciphertext is searched for with the token.

<4. Inner-Product Predicate Encryption Scheme>

A scheme for inner-product predicate encryption with ciphertext conversion (Inner Product Encryption with Ciphertext Conversion, IPE-CC) will be described.

In the IPE-CC scheme, attribute information of inner-product predicates is represented as an attribute vector {right arrow over (x)}εF_(q) ^(n)\{{right arrow over (0)}}, and predicate information (f_(v→)) is represented as a predicate vector {right arrow over (v)}, where f_(v→)({right arrow over (x)})=1 only if {right arrow over (v)}·{right arrow over (x)}=0.

The IPE-CC scheme includes five probabilistic polynomial-time algorithms: Setup, TokenGen, Enc, Conv, and Query.

(Setup)

A Setup algorithm takes as input a security parameter 1^(λ), and outputs a public key pk, a conversion key ck, and a secret key sk (master secret key).

(TokenGen)

A TokenGen algorithm takes as input the public key pk, the secret key sk, and a predicate vector {right arrow over (v)}, and outputs a token tk_(v) (decryption key).

(Enc)

An Enc algorithm takes as input the public key pk and an attribute vector {right arrow over (x)}, and outputs a ciphertext ct_(x).

(Conv)

A Conv algorithm takes as input the public key pk, the conversion key ck, and the ciphertext ct_(x), and outputs a converted ciphertext CT_(x).

(Query)

A Query algorithm takes as input the public key pk, the token tk_(v), and the converted ciphertext CT_(x), and outputs 0 or 1 indicating a value of a predicate f_(v→) concerning the predicate vector {right arrow over (v)} which is evaluated based on the attribute vector {right arrow over (x)}.

A cryptographic system 10 that executes the algorithms of the IPE-CC scheme will be described.

FIG. 1 is a configuration diagram of the cryptographic system 10 according to Embodiment 1.

The cryptographic system 10 includes a key generation device 100, an encryption device 200, a conversion device 300, and a decryption device 400.

The key generation device 100 executes the Setup algorithm taking as input a security parameter λ, and thus generates a public key pk, a conversion key ck, and a secret key sk. Then, the key generation device 100 publishes the public key pk, and transmits the conversion key ck to the conversion device 300 in secrecy. The key generation device 100 also executes the TokenGen algorithm taking as input the public key pk, the secret key sk, and a predicate vector {right arrow over (v)}, and thus generates a token tk_(v), and transmits the token tk_(v) to the decryption device 400 in secrecy.

The encryption device 200 executes the Enc algorithm taking as input the public key pk and an attribute vector {right arrow over (x)}, and thus generates a ciphertext ct_(x).

The conversion device 300 executes the Conv algorithm taking as input the public key pk, the conversion key ck, and the ciphertext ct_(x), and thus generates a ciphertext CT_(x).

The decryption device 400 executes the Query algorithm taking as input the public key pk, the token tk_(v), and the ciphertext CT_(x), and outputs 0 or 1.

FIG. 2 is a functional block diagram illustrating the function of the key generation device 100 according to Embodiment 1. FIG. 3 is a functional block diagram illustrating the function of the encryption device 200 according to Embodiment 1. FIG. 4 is a functional block diagram illustrating the function of the conversion device 300 according to Embodiment 1. FIG. 5 is a functional block diagram illustrating the function of the decryption device 400 according to Embodiment 1.

FIG. 6 and FIG. 7 are flowcharts illustrating the operation of the key generation device 100 according to Embodiment 1. FIG. 6 is a flowchart illustrating the process of the Setup algorithm according to Embodiment 1, and FIG. 7 is a flowchart illustrating the process of the TokenGen algorithm according to Embodiment 1. FIG. 8 is a flowchart illustrating the operation of the encryption device 200 according to Embodiment 1 and illustrating the process of the Enc algorithm according to Embodiment 1. FIG. 9 is a flowchart illustrating the operation of the conversion device 300 according to Embodiment 1 and illustrating the process of the Conv algorithm according to Embodiment 1. FIG. 10 is a flowchart illustrating the operation of the decryption device 400 according to Embodiment 1 and illustrating the process of the Query algorithm according to Embodiment 1.

The function and operation of the key generation device 100 will be described.

As illustrated in FIG. 2, the key generation device 100 includes a master key generation part 110, a master key storage part 120, an information input part 130, a token generation part 140, and a token transmission part 150.

With reference to FIG. 6, the process of the Setup algorithm will be described.

(S101: Orthonormal Basis Generation Step)

Using a processing device, the master key generation part 110 computes Formula 117, and thus generates a parameter param_(V), a basis B, and a basis B*.

$\begin{matrix} \left\lbrack {{Formula}\mspace{14mu} 117} \right\rbrack & \; \\ {{input}\mspace{14mu} 1^{\lambda}} & (1) \\ {N:={n + u + w + z}} & (2) \\ {{{param}_{??}:={\left( {q,{??},{??}_{T},g,e} \right)\overset{R}{\longleftarrow}{{??}_{bpg}\left( 1^{\lambda} \right)}}},{{param}_{{??}^{\prime}}:={\left( {q,{??},{{??}_{T,}{??}},e} \right)\overset{R}{\longleftarrow}{{??}_{dpvs}\left( {1^{\lambda},N,{param}_{??}} \right)}}}} & (3) \\ {\psi\overset{\bigcup}{\longleftarrow}{??}_{q}^{x}} & (4) \\ {X:={\left( \chi_{i,j} \right)\overset{\bigcup}{\longleftarrow}{{GL}\left( {N,{??}_{q}} \right)}}} & (5) \\ {\left( \vartheta_{i,j} \right):={\psi \cdot \left( X^{T} \right)^{- 1}}} & (6) \\ {{b_{i}:={\sum\limits_{j = 1}^{N}\;{\chi_{i,j}a_{j}}}},{{{??}^{*}\text{:}} = \left( {b_{1},\ldots\mspace{14mu},b_{N}} \right)}} & (7) \\ {{b_{i}^{*}:={\sum\limits_{j = 1}^{N}{\vartheta_{i,j}a_{j}}}},{{{??}^{*}\text{:}} = \left( {b_{1}^{*},\ldots\mspace{14mu},b_{N}^{*}} \right)}} & (8) \\ {{g_{T}:={e\left( {g,g} \right)^{\psi}}},\;{{param}_{??} = \left( {{param}_{{??}^{\prime}},g_{T}} \right)}} & (9) \end{matrix}$

That is, the master key generation part 110 executes the following process (1) through (9).

(1) Using an input device, the master key generation part 110 takes as input a security parameter λ.

(2) Using the processing device, the master key generation part 110 sets n+u+w+z in N. Note that n is an integer of 1 or more, and u, w, and z are integers of 0 or more.

(3) Using the processing device, the master key generation part 110 executes the algorithm G_(bpg) taking as input the security parameter λ inputted in (1), and thus generates a parameter param_(G) of bilinear pairing groups. Then, using the processing device, the master key generation part 110 executes the algorithm G_(dpvs) taking as input the security parameter λ inputted in (1), N set in (2), and the parameter param_(G), and thus generates values of a parameter param_(V′):=(q, V, G_(T), A, e) of dual pairing vector spaces.

(4) Using the processing device, the master key generation part 110 generates a random number ψ.

(5) Using the processing device, the master key generation part 110 takes as input N set in (2) and F_(q), and randomly generates a linear transformation X:=(χ_(i,j)). Note that GL stands for general linear. In other words, GL is a general linear group, a set of square matrices with non-zero determinants, and a group under multiplication.

(6) Using the processing device and based on the random number ψ generated in (4) and the linear transformation X generated in (5), the master key generation part 110 generates (ν_(i,j)):=ψ·(X^(T))⁻¹.

(7) Using the processing device and based on the linear transformation X generated in (5), the master key generation part 110 generates a basis B from the canonical basis A generated in (3).

(8) Using the processing device and based on ν_(i,j) generated in (6), the master key generation part 110 generates a basis B* from the canonical basis A generated in (3).

(9) Using the processing device, the master key generation part 110 sets e(g, g)^(ψ) in g_(T). The master key generation part 110 also sets param_(V′) generated in (3) and g_(T) in param_(V).

(S102: Conversion Key Generation Step)

Using the processing device, the master key generation part 110 generates conversion information W, as indicated in Formula 118. The master key generation part 110 designates the conversion information W as a conversion key ck.

[Formula  118] $W\overset{\bigcup}{\longleftarrow}{{GL}\left( {N,{??}_{q}} \right)}$

(S103: Public Key Generation Step)

Using the processing device, the master key generation part 110 converts the basis B generated in S101 with the conversion key W, as indicated in Formula 119, and thus generates a basis D. Then, using the processing device, the master key generation part 110 generates a subbasis D^ of the basis D, as indicated in Formula 119. d _(i) :=b _(i) W for i=1, . . . ,n+u+w+z,

:=(d ₁ , . . . ,d _(n+u+w+z)),

:=(d ₁ , . . . ,d _(n) ,d _(n+u+w+1) . . . ,d _(n+u+w+z))  [Formula 119]

The master key generation part 110 designates a combination of the subbasis D^, the security parameter λ inputted in S101, and param_(V) generated in S101 as a public key pk.

(S104: Secret Key Generation Step)

Using the processing device, the master key generation part 110 generates a subbasis B*^ of the basis B* generated in S101, as indicated in Formula 120.

*:=(b* ₁ , . . . ,b* _(n) ,b* _(n+u+1) , . . . ,b* _(n+u+w))  [Formula 120]

The master key generation part 110 designates the subbasis B*^ as a secret key sk.

(S105: Key Storage Step)

The master key storage part 120 stores the conversion key ck generated in S102, the public key pk generated in S103, and the secret key sk generated in S104 in a storage device.

In brief, in S101 through S104, the key generation device 100 generates the conversion key ck, the public key pk, and the secret key sk by executing the Setup algorithm indicated in Formula 121. In S105, the key generation device 100 stores the conversion key ck, the public key pk, and the secret key sk in the storage device.

The public key pk is published, for example, via a network, and is made available for the encryption device 200, the conversion device 300, and the decryption device 400. The conversion key ck is transmitted to the conversion device 300 in secrecy by a communication device and via the network, for example.

[Formula  121] Setup  (1^(λ)): ${\left( {{param}_{??},{{??}:=\left( {b_{1},\ldots\mspace{14mu},b_{n + u + w + z}} \right)},{{??}^{*}:=\left( {b_{1}^{*},\ldots\mspace{14mu},b_{n + u + w + z}^{*}} \right)}} \right)\overset{R}{\longleftarrow}{{??}_{ob}^{IPE}\left( 1^{\lambda} \right)}},{W\overset{\bigcup}{\longleftarrow}{{GL}\left( {N,{??}_{q}} \right)}},{d_{i}:={{b_{i}W\mspace{14mu}{for}\mspace{14mu} i} = 1}},\ldots\mspace{14mu},{n + u + w + z},{{??}:=\left( {d_{1},\ldots\mspace{14mu},d_{n + u + w + z}} \right)},{\hat{??}:=\left( {d_{1},\ldots\mspace{14mu},d_{n},{d_{n + u + w + 1}\ldots}\mspace{14mu},d_{n + u + w + z}} \right)},{{\hat{??}}^{*}:=\left( {b_{1}^{*},\ldots\mspace{14mu},b_{n}^{*},b_{n + u + 1}^{*},\ldots\mspace{14mu},b_{n + u + w}^{*}} \right)},{{{return}\mspace{14mu}{pk}}:=\left( {1^{\lambda},{param}_{??},\hat{??}} \right)},{{ck}:=W},{{sk}:={{{\hat{??}}^{*}.{{??}_{ob}^{IPE}\left( 1^{\lambda} \right)}}\text{:}}}$ ${N:={n + u + w + z}},{{param}_{??}:={\left( {q,{??},{??}_{T},g,e} \right)\overset{R}{\longleftarrow}{{??}_{bpg}\left( 1^{\lambda} \right)}}},{{param}_{{??}^{\prime}}:={\left( {q,{??},{??}_{T},{??},e} \right)\overset{R}{\longleftarrow}{{??}_{dpvs}\left( {1^{\lambda},N} \right)}}},{\psi\overset{\bigcup}{\longleftarrow}{??}_{q}^{x}},{g_{T}:={e\left( {g,g} \right)}^{\psi}},{X:={\left( \chi_{i,j} \right)\overset{\bigcup}{\longleftarrow}{{GL}\left( {N,{??}_{q}} \right)}}},{\left( \vartheta_{i,j} \right)\text{:}{\psi \cdot \left( X^{T} \right)^{- 1}}},{{param}_{??}:=\left( {{param}_{{??}^{\prime}},g_{T}} \right)},{b_{i}:={\sum\limits_{j = 1}^{N}{\chi_{i,j}a_{j}}}},{{??}:=\left( {b_{1},\ldots\mspace{14mu},b_{N}} \right)},{b_{i}^{*}:={\sum\limits_{j = 1}^{N}\;{\vartheta_{i,j}a_{j}}}},{{??}^{*}:=\left( {b_{1}^{*},\ldots\mspace{14mu},b_{N}^{*}} \right)},{{return}\mspace{14mu}{\left( {{param}_{??},{??},{??}^{*}} \right).}}$

With reference to FIG. 7, the process of the TokenGen algorithm will be described.

(S201: Information Input Step)

Using the input device, the information input part 130 takes as input a predicate vector {right arrow over (v)}. In the predicate vector {right arrow over (v)}, attribute information of a user of a token tk_(v), a search keyword, and so on are set as elements, for example.

(S202: Random Number Generation Step)

Using the processing device, the token generation part 140 generates random numbers, as indicated in Formula 122.

[Formula  122] ${\sigma\overset{\bigcup}{\longleftarrow}{??}_{q}},{\overset{\rightarrow}{\eta}:={\left( {\eta_{1},\ldots\mspace{14mu},\eta_{w}} \right)\overset{\bigcup}{\longleftarrow}{??}_{q}^{w}}}$

(S203: Token Element Generation Step)

Using the processing device, the token generation part 140 generates an element k* of the token tk_(v), as indicated in Formula 123.

[Formula  123] ${k*}:=\left( {\overset{\overset{n}{︷}}{\sigma\;\overset{\rightarrow}{v}},\overset{\overset{u}{︷}}{0^{u}},\overset{\overset{w}{︷}}{\overset{\rightarrow}{\eta}},\overset{\overset{z}{︷}}{0^{z}},} \right)_{{??}^{*}}$

For the basis B and the basis B* indicated in Formula 110, Formula 111 is defined. Thus, Formula 123 means that σv₁, . . . , σv_(n) are respectively set as the coefficient of basis vectors b*₁, . . . , b*_(n) of the basis B*, 0 is set as the coefficient of each of basis vectors b*_(n+1), . . . , b*_(n+u) of the basis B*, η₁, . . . , η_(w) are respectively set as the coefficient of basis vectors b*_(n+u+1), . . . , b*_(n+u+w) of the basis B*, and 0 is set as the coefficient of each of basis vectors b*_(n+u+w+1), . . . , b*_(n+u+w+z) of the basis B*.

(S204: Token Transmission Step)

Using the communication device and via the network, for example, the token transmission part 150 transmits the token tk_(v) having the element k* generated in S203 to the decryption device 400 in secrecy. As a matter of course, the token tk_(v) may be transmitted to the decryption device 400 by another method.

In brief, in S201 through S203, the key generation device 100 generates the token tk_(v) by executing the TokenGen algorithm indicated in Formula 124. In S204, the key generation device 100 transmits the token tk_(v) to the decryption device 400.

[Formula  124] ${{TokenGen}\left( {{pk},{sk},{\overset{\rightarrow}{v} \in {{??}_{q}^{n}\backslash\left\{ \overset{\rightarrow}{0} \right\}}}} \right)}\text{:}$ ${\sigma\overset{\bigcup}{\longleftarrow}{??}_{q}},{\overset{\rightarrow}{\eta}:={\left( {\eta_{1},\ldots\mspace{14mu},\eta_{w}} \right)\overset{\bigcup}{\longleftarrow}{??}_{q}^{w}}},{k^{*}:=\left( {\overset{\overset{n}{︷}}{\sigma\;\overset{\rightarrow}{v}},\overset{\overset{u}{︷}}{0^{u}},\overset{\overset{w}{︷}}{\overset{\rightarrow}{\eta}},\overset{\overset{z}{︷}}{0^{z}},} \right)_{{??}^{*}}},{{{return}\mspace{14mu}{tk}_{v}}:={k^{*}.}}$

The function and operation of the encryption device 200 will be described.

As illustrated in FIG. 3, the encryption device 200 includes a public key acquisition part 210, an information input part 220, a ciphertext generation part 230, and a data transmission part 240.

With reference to FIG. 8, the process of the Enc algorithm will be described.

(S301: Public Key Acquisition Step)

Using the communication device and via the network, for example, the public key acquisition part 210 obtains the public key pk generated by the key generation device 100.

(S302: Information Input Step)

Using the input device, the information input part 220 takes as input an attribute vector {right arrow over (x)}εF_(q). In the attribute vector {right arrow over (x)}, attribute information of a user who is allowed to search and a search tag are set as elements, for example.

(S303: Random Number Generation Step)

Using the processing device, the ciphertext generation part 230 generates random numbers as indicated in Formula 125.

[Formula  125] ${\tau\overset{\bigcup}{\longleftarrow}{??}_{q}},\;{\overset{\rightarrow}{\xi}:={\left( {\xi_{1},\ldots\mspace{14mu},\xi_{z}} \right)\overset{\bigcup}{\longleftarrow}{??}_{q}^{z}}}$

(S304: Cipher Element Generation Step)

Using the processing device, the ciphertext generation part 230 generates an element f of a ciphertext ct_(x), as indicated in Formula 126.

[Formula  126] $f:=\left( {\overset{\overset{n}{︷}}{\tau\;\overset{\rightarrow}{x}},\overset{\overset{u}{︷}}{0^{u}},\overset{\overset{w}{︷}}{0^{w}},\overset{\overset{z}{︷}}{\overset{\rightarrow}{\xi}}} \right)_{??}$

(S305: Data Transmission Step)

Using the communication device and via the network, for example, the data transmission part 240 transmits the ciphertext ct_(x) including the element f generated in S304 to the conversion device 300. As a matter of course, the ciphertext ct_(x) may be transmitted to the conversion device 300 by another method.

In brief, in S301 through S304, the encryption device 200 generates the ciphertext ct_(x) by executing the Enc algorithm indicated in Formula 127. In S305, the encryption device 200 transmits the ciphertext ct_(x) to the conversion device 300.

[Formula  127] ${{Enc}\left( {{pk},{\overset{\rightarrow}{x} \in {??}_{q}^{n}}} \right)}\text{:}$ ${\tau\overset{\bigcup}{\longleftarrow}{??}_{q}},\;{\overset{\rightarrow}{\xi}:={\left( {\xi_{1},\ldots\mspace{14mu},\xi_{z}} \right)\overset{\bigcup}{\longleftarrow}{??}_{q}^{z}}},{f:=\left( {\overset{\overset{n}{︷}}{\tau\;\overset{\rightarrow}{x}},\overset{\overset{u}{︷}}{0^{u}},\overset{\overset{w}{︷}}{0^{w}},\overset{\overset{z}{︷}}{\overset{\rightarrow}{\xi}}} \right)_{??}},{{{return}\mspace{14mu}{ct}_{x}}:={f.}}$

The function and operation of the conversion device 300 will be described.

As illustrated in FIG. 4, the conversion device 300 includes a conversion key acquisition part 310, a ciphertext acquisition part 320, a ciphertext conversion part 330, and a data transmission part 340.

With reference to FIG. 9, the process of the Conv algorithm will be described.

(S401: Conversion Key Acquisition Step)

Using the communication device and via the network, for example, the conversion key acquisition part 310 obtains the conversion key ck:=W transmitted by the key generation device 100. The conversion key acquisition part 310 also obtains the public key pk generated by the key generation device 100.

(S402: Ciphertext Acquisition Step)

Using the communication device and via the network, for example, the ciphertext acquisition part 320 receives the ciphertext ct_(x):=f transmitted by the encryption device 200.

(S403: Random Number Generation Step)

Using the processing device, the ciphertext conversion part 330 generates random numbers as indicated in Formula 128.

[Formula  128] ${\rho\overset{\bigcup}{\longleftarrow}{??}_{q}},{{y\overset{\bigcup}{\longleftarrow}{span}}\left\langle {d_{n + u + w + 1},\ldots\mspace{14mu},d_{n + u + w + z}} \right\rangle}$

(S404: Ciphertext Conversion Step)

Using the processing device, the ciphertext conversion part 330 converts the ciphertext ct_(x), as indicated in Formula 129, and thus generates an element c. c:=(ρf+y)W ⁻¹  [Formula 129]

(S405: Data Transmission Step)

Using the communication device and via the network, for example, the data transmission part 340 transmits a ciphertext CT_(x) including the element c generated in S404 to the decryption device 400. As a matter of course, the ciphertext CT_(x) may be transmitted to the decryption device 400 by another method.

In brief, in S401 through S404, the conversion device 300 generates the ciphertext CT_(x) by executing the Conv algorithm indicated in Formula 130. In S405, the conversion device 300 transmits the generated ciphertext CT_(x) to the decryption device 400.

[Formula  130] Conv(pk, ck := W, ct_(x) := f): ${\rho\overset{\bigcup}{\longleftarrow}{??}_{q}},{{y\overset{\bigcup}{\longleftarrow}{span}}\left\langle {d_{n + u + w + 1},\ldots\mspace{14mu},d_{n + u + w + z}} \right\rangle},{c:={\left( {{\rho\; f} + y} \right)W^{- 1}}},{{{return}\mspace{14mu}{CT}_{x}}:={c.}}$

The function and operation of the decryption device 400 will be described.

As illustrated in FIG. 5, the decryption device 400 includes a token acquisition part 410, a ciphertext acquisition part 420, and a decryption part 430.

With reference to FIG. 10, the process of the Dec algorithm will be described.

(S501: Token Acquisition Step)

Using the communication device and via the network, for example, the token acquisition part 410 obtains the token tk_(v):=k* transmitted by the key generation device 100. The token acquisition part 410 also obtains the public key pk generated by the key generation device 100.

(S502: Ciphertext Acquisition Step)

Using the communication device and via the network, for example, the ciphertext acquisition part 420 receives the ciphertext CT_(x):=c transmitted by the conversion device 300.

(S503: Decryption Step)

Using the processing device, the decryption part 430 outputs 1 indicating that decryption has been successful if a result of computing a pairing operation e(c, k*) is 1, and outputs 0 indicating that decryption has failed if the result is not 1.

In brief, in S501 through S503, the decryption device 400 executes the Query algorithm indicated in Formula 131, and thus determines whether or not decryption has been successful. Query(pk,tk _(ν) :=k*,CT _(X) :=c):  [Formula 131]

if e(c,k*)=1, output 1,

otherwise, output 0.

Note that D·W⁻¹:=d₁W⁻¹, . . . , d_(n+u+w+z)W⁻¹) is equal to B:=(b₁, . . . , b_(n+u+w+z)). Thus, c:=(ρf+y)W⁻¹=(ω{right arrow over (x)},0^(u),0^(w),{right arrow over (η)})_(D)·W⁻¹=(ω{right arrow over (x)},0^(u),0^(w),{right arrow over (η)})_(D·W-1)=(ω{right arrow over (x)},0^(u),0^(w), {right arrow over (η)})_(B), where the subscript W−1 means W⁻¹. ωεF_(q) and {right arrow over (η)}εF^(n) _(q) are uniformly and independently distributed. Thus, if {right arrow over (v)}·{right arrow over (x)}=0, then e(c, k*)=g_(T) ^(ωσv→·x→)=1.

In the conventional IPE, a ciphertext can be freely generated using the public key pk. Thus, there is a risk that information on the predicate vector {right arrow over (v)} which is set in the token tk_(v) may be leaked by executing the Query algorithm on a large number of ciphertexts.

In the IPE-CC scheme according to Embodiment 1, the conversion device 300 converts the basis of the ciphertext ct_(x) using the conversion key ck to generate the ciphertext CT_(x), and the decryption device 400 executes the Query algorithm on the converted ciphertext CT_(x). Therefore, the Query algorithm cannot be executed on a large number of ciphertexts without help from the conversion device 300. With this arrangement, the leakage of the information on the predicate vector {right arrow over (v)} which is set in the token tk_(v) can be prevented.

It has been described in the above that a combination of the basis D^, the security parameter λ, and param_(V) is published as the public key pk.

However, the basis D^, the security parameter λ, and param_(V) may be transmitted to the encryption device 200 in secrecy as another secret key which is paired with the secret key sk, instead of being used as the public key. In this case, inner-product predicate encryption which can conceal both the attribute information and the predicate information in the secret key setting can be implemented.

It has been described in the above that u, w, and z are integers of 0 or more. It may be arranged that u=3n, w=n, and z=n, for example.

In the above, the method for determining whether or not the ciphertext ct_(x) satisfies the condition which is set in the token tk_(v) has been described. With this method, a secure search system can be constructed in which the ciphertext ct_(x) can be searched for while remaining encrypted.

However, as discussed in Non-Patent Literature 2 and so on, by embedding a message m in a ciphertext ct_(x), a narrowly-defined cryptographic system can be constructed in which the message m embedded in the ciphertext ct_(x) is retrieved with the token tk_(v).

Embodiment 2

Embodiment 2 describes an IPE-CC scheme in which efficiency is improved by employing a sparse matrix for generating orthonormal bases B and B*.

In Embodiment 2, what is the same as in Embodiment 1 will not be described, and differences from Embodiment 1 will be mainly described.

The configurations of the key generation device 100, the encryption device 200, the conversion device 300, and the decryption device 400 according to Embodiment 2 are respectively the same as the configurations of these devices illustrated in FIG. 2 to FIG. 5.

The flows of the Setup algorithm, the TokenGen algorithm, the Enc algorithm, the Conv algorithm, and the Query algorithm according to Embodiment 2 are respectively the same as the flows of these algorithms illustrated in FIG. 6 to FIG. 10.

A sparse matrix employed in Embodiment 2 will be described, and a linear transformation X constructed using the sparse matrix and an adjoint matrix ψ(X⁻¹)^(T) of the linear transformation X will be described.

It is assumed that N:=6n, that H(n, F_(q)) is as indicated in Formula 132, and that L(6, n, F_(q)) is as indicated in Formula 133.

$\begin{matrix} {\mspace{79mu}{\left\lbrack {{Formula}\mspace{14mu} 132} \right\rbrack{{\mathcal{H}\left( {n,{??}_{q}} \right)}:={\left\{ \begin{pmatrix} \mu_{1}^{''} & \mu_{2}^{''} & \cdots & \mu_{n - 1}^{''} & \mu^{''} \\ \; & \mu & \; & \; & \mu_{2}^{\prime} \\ \; & \; & {\ddots\;} & \; & \vdots \\ \; & \; & \; & \mu & \mu_{n - 1}^{\prime} \\ \; & \; & \; & \; & \mu_{n}^{\prime} \end{pmatrix} \middle| \begin{matrix} {\mu,\mu_{2}^{\prime},\ldots\mspace{14mu},\mu_{n}^{\prime},} \\ {\mu_{1}^{''},\ldots\mspace{14mu},\mu_{n - 1}^{''},{\mu^{\prime\prime\prime} \in {??}_{q}}} \\ {a\mspace{14mu}{{blan}k}\mspace{14mu}{{eleme}{nt}}\mspace{14mu}{in}\mspace{14mu}{the}\mspace{14mu}{matrix}} \\ {{{{denote}s}\mspace{14mu} 0} \in {??}_{q}} \end{matrix} \right\}\mspace{20mu}\left\lbrack {{Formula}\mspace{14mu} 133} \right\rbrack}}}} \\ {{\mathcal{L}\left( {6,n,{??}_{q}} \right)}:={\left\{ {X:=\left. \begin{pmatrix} X_{1,1} & \cdots & X_{1,6} \\ \vdots & \; & \vdots \\ X_{6,1} & \cdots & X_{6,6} \end{pmatrix} \middle| \begin{matrix} {X_{i,j} \in {\mathcal{H}\left( {n,{??}_{q}} \right)}} \\ {{{for}\mspace{14mu} i},{j = 1},\ldots\mspace{14mu},6} \end{matrix} \right.} \right\}\bigcap{{GL}\left( {N,{??}_{q}} \right)}}} \end{matrix}$

Note that L(6, n, F_(q)) is a subset of GL(N, F_(q)).

The adjoint matrix ψ(X⁻¹)^(T) of the linear transformation XεL(6, n, F_(q)) is represented in a sparse form indicated in Formula 134.

[Formula  134] ${\psi\left( X^{- 1} \right)}^{T}:=\begin{pmatrix} Y_{1,1} & \ldots & Y_{1,6} \\ \vdots & \; & \vdots \\ Y_{6,1} & \ldots & Y_{6,6} \end{pmatrix}$ ${{{where}\mspace{14mu} Y_{i,j}}:={\begin{pmatrix} v_{i,j,1}^{''} & \; & \; & \; & \; \\ v_{i,{j\; 2}}^{''} & v_{i,j} & \; & \; & \; \\ \vdots & \; & \ddots & \; & \; \\ v_{i,j,{n - 1}}^{''} & \; & \; & v_{i,j} & \; \\ v_{i,j}^{\prime\prime\prime} & v_{i,j,2}^{\prime} & \ldots & \; & v_{i,j,n}^{\prime} \end{pmatrix}\mspace{14mu} i}},{j = 1},\ldots\mspace{14mu},6$

Here, a blank element in matrices X and (X⁻¹)^(T) denotes a constant value 0εF_(q). The constant value 0 signifies that the value is fixed to 0.

That is, the matrix XεL(6, n, F_(q)) is represented by 72n non-zero elements {u_(i,j), u′_(i,j,2), . . . , u′_(i,j,n), u″_(i,j,1), . . . , u″_(i,j,n−1), u′″_(i,j)}_(i,j)=1, . . . , 6, and the adjoint matrix ψ(X⁻¹)^(T) is represented by 72n non-zero elements {v_(i,j), v′_(i,j,2), . . . , v′_(i,j,n),v″_(i,j,1), . . . , v″_(i,j,n−1), v′″_(i,j)}_(i,j)=1, . . . , 6. Note that a non-zero element is a uniform random number which may be 0.

The IPE-CC scheme according to Embodiment 2 will be described.

Here, it is assumed that x₁≠0 and v₁≠0 for an attribute vector {right arrow over (x)}:=(x₁, . . . , fx_(n)) and a predicate vector {right arrow over (v)}:=(v₁, . . . , v_(n)) which are inputted.

With reference to FIG. 6, the process of the Setup algorithm will be described.

(S101: Orthonormal Basis Generation Step)

Using the processing device, the master key generation part 110 computes Formula 135, and thus generates a parameter param_(V), a basis B, and a basis B*.

$\begin{matrix} {\mspace{79mu}\left\lbrack {{Formula}\mspace{14mu} 135} \right\rbrack} & \; \\ {\mspace{76mu}{{input}\mspace{14mu} 1^{\lambda}}} & (1) \\ {\mspace{79mu}{N:={6n}}} & (2) \\ {\mspace{79mu}{{{param}_{??}:={{\left( {q,{??},{??}_{T},g,e} \right)\overset{R}{\longleftarrow}{??}_{bpg}}\left( 1^{\lambda} \right)}},\mspace{20mu}{{param}_{{??}^{\prime}}:={\left( {q,{??},{??}_{T},{??},e} \right)\overset{R}{\longleftarrow}{{??}_{dpvs}\left( {1^{\lambda},N,{param}_{??}} \right)}}}}} & (3) \\ {\mspace{85mu}{\psi\overset{U}{\longleftarrow}{??}_{q}^{\times}}} & (4) \\ {\mspace{79mu}{X\overset{U}{\longleftarrow}{\mathcal{L}\left( {6,n,{??}_{q}} \right)}}} & (5) \\ {\mspace{20mu}{\left( \vartheta_{i,j} \right):={\psi \cdot \left( X^{- 1} \right)^{T}}}} & (6) \\ \left\{ {{B_{i,j}:={\mu_{i,j}g}},{B_{i,j,2}^{\prime}:={\mu_{i,j,2}^{\prime}g}},\ldots\mspace{14mu},{B_{i,j,n}^{\prime}:={\mu_{i,j,n}^{\prime}g}},\left. \quad{{B_{i,j,1}^{''}:={\mu_{i,j,1}^{''}g}},\ldots\mspace{14mu},{B_{i,j,{n - 1}}^{''}:={\mu_{i,j,{n - 1}}^{''}g}},{B_{i,j}^{\prime\prime\prime}:={\mu_{i,j}^{\prime\prime\prime}g}}} \right\}_{i,{j = 1},\ldots\mspace{14mu},6}} \right. & (7) \\ \left\{ {{B_{i,j}^{*}:={v_{i,j}g}},{B_{i,j,2}^{\prime*}:={v_{i,j,2}^{\prime}g}},\ldots\mspace{14mu},{B_{i,j,n}^{\prime*}:={v_{i,j,n}^{\prime}g}},\left. \quad{{B_{i,j,1}^{''}:={v_{i,j,1}^{''}g}},\ldots\mspace{14mu},{B_{i,j,{n - 1}}^{''*}:={v_{i,j,{n - 1}}^{''}g}},{B_{i,j}^{{\prime\prime\prime}*}:={v_{i,j}^{\prime\prime\prime}:=g}}} \right\}_{i,{j = 1},\ldots\mspace{14mu},6}} \right. & (8) \\ {\mspace{20mu}{{param}_{??}:=\left( {{param}_{{??}^{\prime}},g_{T}} \right)}} & (9) \end{matrix}$

That is, the master key generation part 110 executes the following process (1) through (9).

(1), (3), (4), and (9) are the same as those in Embodiment 1, and thus will not be described.

(2) Using the processing device, the master key generation part 110 sets 6n in N. Note that n is an integer of 1 or more.

(5) Using the processing device, the master key generation part 110 takes as input n of N:=6n set in (2) and F_(q), and randomly generates a linear transformation X:=(χ_(i,j)).

(6) Using the processing device, the master key generation part 110 generates (ν_(i,j)):=ψ·(X⁻¹)^(T) based on the random number ψ generated in (4) and the linear transformation X generated in (5).

In the following, {u_(i,j), u′_(i,j,2), . . . , u′_(i,j,n), u″_(i,j,1), . . . , u″_(i,j,n−1), u′″_(i,j)}_(i,j=1, . . . , 6) denotes non-zero elements in the linear transformation X. {v_(i,j), v′_(i,j,2), . . . , v′_(i,j,n), v″_(i,j,1), . . . , v″_(i,j,n−1), v′″_(i,j)}_(i,j=1, . . . , 6) denotes non-zero elements in the adjoint matrix ψ·(X⁻¹)^(T).

(7) Using the processing device, the master key generation part 110 generates a basis B based on the linear transformation X generated in (5).

(8) Using the processing device, the master key generation part 110 generates a basis B* based on the adjoint matrix ψ·(X⁻¹)^(T) generated in (6).

Here, Formula 136 holds, and note that the basis B:=(b₁, . . . , b_(6n)) and the basis B*:=(b*₁, . . . , b*_(6n)). Note that a blank element in the matrix denotes the constant element 0εG, and that the bases B and B* are orthonormal bases. That is, for 1≦i≠j≦6n, e(b_(i), b*_(i))=g_(T) and e(b_(i), b*_(j))=1.

[Formula  136] ${\begin{pmatrix} b_{{{({i - 1})}n} + 1} \\ \vdots \\ \vdots \\ b_{i\; n} \end{pmatrix}:=\begin{pmatrix} B_{i,1,1}^{''} & B_{i,1,2}^{''} & \ldots & B_{i,{{1n} - 1}}^{''} & B_{i,1}^{\prime\prime\prime} & \; & B_{i,6,1}^{''} & B_{i,6,2}^{''} & \ldots & B_{i,6,{n - 1}}^{''} & B_{i,6}^{\prime\prime\prime} \\ \; & B_{i,1} & \; & \; & B_{i,1,2}^{\prime} & \; & \; & B_{i,6} & \; & \; & B_{i,6,2}^{\prime} \\ \; & \; & \ddots & \; & \vdots & \ldots & \; & \; & \ddots & \; & \vdots \\ \; & \; & \; & B_{i,1} & B_{i,1,{n - 1}}^{\prime} & \; & \; & \; & \; & B_{i,6} & B_{i,6,{n - 1}}^{\prime} \\ \; & \; & \; & \; & B_{i,1,n}^{\prime} & \; & \; & \; & \; & \; & B_{i,6,n}^{\prime} \end{pmatrix}},{\begin{pmatrix} b_{{{({i - 1})}n} + 1}^{*} \\ \vdots \\ \vdots \\ b_{i\; n}^{*} \end{pmatrix}:=\begin{pmatrix} B_{i,1,1}^{''*} & \; & \; & \; & \; & \; & B_{i,6,1}^{''*} & \; & \; & \; & \; \\ B_{i,1,2}^{''*} & B_{i,1}^{*} & \; & \; & \; & \; & B_{i,6,2}^{''*} & B_{i,6}^{*} & \; & \; & \; \\ \vdots & \; & \ddots & \; & \; & \ldots & \vdots & \; & \ddots & \; & \; \\ B_{i,{{1n} - 1}}^{''*} & \; & \; & B_{i,1}^{*} & \; & \; & B_{i,{{6n} - 1}}^{''*} & \; & \; & B_{i,6}^{*} & \; \\ B_{i,1}^{{\prime\prime\prime}*} & B_{i,1,2}^{\prime*} & \ldots & B_{i,1,{n - 1}}^{\prime*} & B_{i,1,n}^{\prime*} & \; & B_{i,6}^{{\prime\prime\prime}*} & B_{i,6,2}^{\prime*} & \ldots & B_{i,6,{n - 1}}^{\prime*} & B_{i,6,n}^{\prime*} \end{pmatrix}}$

(S102: Conversion Key Generation Step)

Using the processing device, the master key generation part 110 generates conversion information W, as indicated in Formula 137. The master key generation part 110 designates the conversion information W as a conversion key ck.

[Formula  137] $W\overset{U}{\longleftarrow}{\mathcal{L}\left( {6,n,{??}_{q}} \right)}$

(S103: Public Key Generation Step)

Using the processing device, the master key generation part 110 converts the basis B generated in S101 with the conversion information W, as indicated in Formula 138, and thus generates a basis D:=(d₁, . . . , d_(6n)). Then, using the processing device, the master key generation part 110 generates a subbasis D^ of the basis D, as indicated in Formula 138. Here, like the basis B indicated in Formula 136, the basis D is constructed with {D_(i,j), D′_(i,j,2), . . . , D′_(i,j,n), D″_(i,j,1), . . . , D″_(i,j,n−1), D′″_(i,j)}_(i,j=1, . . . , 6).

[Formula  138] ${{??}:={\begin{pmatrix} d_{1} \\ \vdots \\ d_{6n} \end{pmatrix}:={\begin{pmatrix} b_{1} \\ \vdots \\ b_{6n} \end{pmatrix} \cdot W}}},{{using}\mspace{14mu}\left\{ {D_{i,j},D_{i,j,2}^{\prime},\ldots\mspace{14mu},D_{i,j,n}^{\prime},D_{i,j,1}^{''},\ldots\mspace{14mu},D_{i,j,{n - 1}}^{''},D_{i,j}^{\prime\prime\prime}} \right\}_{i,{j = 1},\ldots\mspace{11mu},6}},{\hat{??}:=\left\{ {D_{i,j},D_{i,j,2}^{\prime},\ldots\mspace{14mu},D_{i,j,n}^{\prime},D_{i,j,1}^{''},\ldots\mspace{14mu},D_{i,j,{n - 1}}^{''},D_{i,j}^{\prime\prime\prime}} \right\}_{{i = 1},{6;{j = 1}},\ldots\mspace{14mu},6}}$

The master key generation part 110 designates a combination of the generated subbasis D^, the security parameter λ inputted in S101, and param_(v) generated in S101 as a public key pk.

(S104: Secret Key Generation Step)

Using the processing device, the master key generation part 110 generates a subbasis B*^ of the basis B* generated in S101, as indicated in Formula 139.

:={B* _(i,j) ,B′* _(i,j,2) , . . . ,B′* _(i,j,n) ,B″* _(i,j,1) , . . . ,B″* _(i,j,n−1) ,B′″* _(i,j)}_(i=1,5;j=1, . . . ,6)  [Formula 139]

The master key generation part 110 designates the generated subbasis B*^ as a secret key sk.

(S105: Key Storage Step)

The master key storage part 120 stores the conversion key ck generated in S102, the public key pk generated in S103, and the secret key sk generated in S104 in the storage device.

In brief, in S101 through S104, the key generation device 100 generates the conversion key ck, the public key pk, and the secret key sk by executing the Setup algorithm indicated in Formula 140. Note that a G^(ZIPE,SK) _(ob) algorithm is as indicated in Formula 141. In S105, the key generation device 100 stores the conversion key ck, the public key pk, and the secret key sk that have been generated in the storage device.

  [Formula  140]   Setup  (1^(λ), n): ${\left( {{param}_{??},\left\{ {B_{i,j},B_{i,j,2}^{\prime},\ldots\mspace{14mu},B_{i,j,n}^{\prime},B_{i,j,1}^{''},\ldots\mspace{14mu},B_{i,j,{n - 1}}^{''},B_{i,j}^{\prime\prime\prime}} \right\}_{i,{j = 1},\ldots\mspace{14mu},6},\left\{ {B_{i,j}^{*},B_{i,j,2}^{\prime*},\ldots\mspace{14mu},B_{i,j,n}^{\prime*},B_{i,j,1}^{''*},\ldots\mspace{14mu},B_{i,j,{n - 1}}^{''*},B_{i,j}^{{\prime\prime\prime}*}} \right\}_{i,{j = 1},\ldots\mspace{14mu},6}} \right)\mspace{20mu}\overset{R}{\longleftarrow}{{??}_{ob}^{{ZIPE},{SK}}\left( {1^{\lambda},6,n} \right)}},\mspace{20mu}{W\overset{U}{\longleftarrow}{\mathcal{L}\left( {6,n,{??}_{q}} \right)}},{\begin{pmatrix} d_{1} \\ \vdots \\ d_{6n} \end{pmatrix}:={\begin{pmatrix} b_{1} \\ \vdots \\ b_{6n} \end{pmatrix} \cdot W}},\mspace{20mu}{{using}\mspace{14mu}\left\{ {D_{i,j},D_{i,j,2}^{\prime},\ldots\mspace{14mu},D_{i,j,n}^{\prime},D_{i,j,1}^{''},\ldots\mspace{14mu},D_{i,j,{n - 1}}^{''},D_{i,j}^{\prime\prime\prime}} \right\}_{i,{j = 1},\ldots\mspace{14mu},6}},{{{return}\mspace{14mu} p\; k}:=\left( {1^{\lambda},{param}_{??},\left\{ {D_{i,j},D_{i,j,2}^{\prime},\ldots\mspace{14mu},D_{i,j,n}^{\prime},D_{i,j,1}^{''},\ldots\mspace{14mu},D_{i,j,{n - 1}}^{''},D_{i,j}^{\prime\prime\prime}} \right\}_{{i = 1},{6;{j = 1}},\ldots\mspace{14mu},6}} \right)},\mspace{20mu}{{ck}:=W},{{sk}:={\left\{ {B_{i,j}^{*},B_{i,j,2}^{\prime*},\ldots\mspace{14mu},B_{i,j,n}^{\prime*},B_{i,j,1}^{''*},\ldots\mspace{14mu},B_{i,j,{n - 1}}^{''*},B_{i,j}^{{\prime\prime\prime}*}} \right\}_{{i = 1},{5;{j = 1}},\ldots\mspace{14mu},6}.\mspace{20mu}\left\lbrack {{Formula}\mspace{14mu} 141} \right\rbrack}}$   ??_(ob)^(ZIPE, SK)(1^(λ), 6, n): $\mspace{20mu}{{{param}_{??}:={{\left( {q,{??},{??}_{T},g,e} \right)\overset{R}{\longleftarrow}{??}_{bpg}}\left( 1^{\lambda} \right)}},\mspace{20mu}{N:={6n}},{\psi\overset{U}{\longleftarrow}{??}_{q}^{\times}},{g_{T}:={e\left( {g,g} \right)}^{\psi}},\mspace{20mu}{{param}_{{??}^{\prime}}:={\left( {q,{??},{??}_{T},{??},e} \right):={{??}_{dpvs}\left( {1^{\lambda},N,{param}_{??}} \right)}}},\mspace{20mu}{{param}_{??}:=\left( {{param}_{{??}^{\prime}},g_{T}} \right)},{X\overset{U}{\longleftarrow}{\mathcal{L}\left( {6,n,{??}_{q}} \right)}},{hereafter},\mspace{20mu}\left\{ {\mu_{i,j},\mu_{i,j,2}^{\prime},\ldots\mspace{14mu},\mu_{i,j,n}^{\prime},\mu_{i,j,1}^{''},\ldots\mspace{14mu},\mu_{i,j,{n - 1}}^{''},\mu_{i,j}^{\prime\prime\prime}} \right\}_{i,{j = 1},\ldots\mspace{14mu},6}}$   denotes  non-zero  entries  of  X,  and  {v_(i, j), v_(i, j, 2)^(′), …  , v_(i, j, n)^(′), v_(i, j, 1)^(″), …  , v_(i, j, n − 1)^(″), v_(i, j)^(′′′)}_(i, j = 1, …  , 6)   denotes  non-zero  entries  of  ψ(X⁻¹)^(T), {B_(i, j) := μ_(i, j)g, B_(i, j, 2)^(′) := μ_(i, j, 2)^(′)g, …  , B_(i, j, n)^(′) := μ_(i, j, n)^(′)g, B_(i, j, 1)^(″) := μ_(i, j, 1)^(″)g, …  ,   B_(i, j, n − 1)^(″) := μ_(i, j, n − 1)^(″)g, B_(i, j)^(′′′) := μ_(i, j)^(′′′)g}_(i, j = 1, …  , 6), {B_(i, j)^(*) := v_(i, j)g, B_(i, j, 2)^(′*) := v_(i, j, 2)^(′)g, …  , B_(i, j, n)^(′*) := v_(i, j, n)^(′)g, B_(i, j, 1)^(″*) := v_(i, j, 1)^(″)g, …  ,   B_(i, j, n − 1)^(″*) := v_(i, j, n − 1)^(″)g, B_(i, j)^(′′′*) := v_(i, j)^(′′′)g}_(i, j = 1, …  , 6), return(param_(??), {B_(i, j), B_(i, j, 2)^(′), …  , B_(i, j, n)^(′), B_(i, j, 1)^(″), …  , B_(i, j, n − 1)^(″), B_(i, j)^(′′′)}_(i, j = 1, …  , 6), {B_(i, j)^(*), B_(i, j, 2)^(′*), …  , B_(i, j, n)^(′*), B_(i, j, 1)^(″*), …  , B_(i, j, n − 1)^(″*), B_(i, j)^(′′′*)}_(i, j = 1, …  , 6)).

With reference to FIG. 7, the process of the TokenGen algorithm will be described.

S201 is the same as that in Embodiment 1, and thus will not be described.

(S202: Random Number Generation Step)

Using the processing device, the token generation part 140 generates random numbers, as indicated in Formula 142.

[Formula  142] $\sigma,\eta_{1},\ldots\mspace{14mu},{\eta_{n}\overset{U}{\longleftarrow}{??}_{q}}$

(S203: Token Element Generation Step)

Using the processing device, the token generation part 140 generates an element k* of a token tk_(v), as indicated in Formula 143. for j=1, . . . ,6, K* _(j,1):=Σ_(L=1) ^(n−1)(σν_(L) B″* _(1,j,L)+η_(L) B″* _(5,j,L))+σν_(n) B′″* _(1,j)+η_(n) B′″* _(5,j), K* _(j,L):=σ(ν_(L) B* _(1,j)+ν_(n) B′* _(1,j,L))+η_(L) B* _(5,j)+η_(L) B′* _(5,j,L) for L=2, . . . ,n−1, K* _(j,n):=σν_(n) B′* _(1,j,n)+η_(n) B′* _(5,j,n), k*:=(K* _(1,1) , . . . ,K* _(1,n) , . . . ,K* _(6,1) , . . . ,K* _(6,n))ε

^(6n)  [Formula 143]

(S204: Token Transmission Step)

Using the communication device and via the network, for example, the token transmission part 150 transmits the token tk_(v) having the element k* generated in S203 to the decryption device 400 in secrecy. As a matter of course, the token tk_(v) may be transmitted to the decryption device 400 by another method.

In brief, in S201 through S203, the key generation device 100 generates the token tk_(v) by executing the TokenGen algorithm indicated in Formula 144. In S204, the key generation device 100 transmits the generated token tk_(v) to the decryption device 400.

[Formula  144] ${{TokenGen}\left( {{p\; k},{sk},{\overset{\rightarrow}{v} \in {{??}_{q}^{n}\backslash\left\{ \overset{\rightarrow}{0} \right\}}}} \right)}\text{:}$ $\sigma,\eta_{1},\ldots\mspace{14mu},{\eta_{k}\overset{U}{\longleftarrow}{??}_{q}},{{{for}\mspace{14mu} j} = 1},\ldots\mspace{14mu},6$ ${K_{j,1}^{*}:={{\sum\limits_{L = 1}^{n - 1}\left( {{\sigma\; v_{L}B_{1,j,L}^{''*}} + {\eta_{L}B_{5,j,L}^{''*}}} \right)} + {\sigma\; v_{n}B_{1,j}^{{\prime\prime\prime}*}} + {\eta_{n}B_{5,j}^{{\prime\prime\prime}*}}}},{K_{j,L}^{*}:={{\sigma\left( {{v_{L}B_{1,j}^{*}} + {v_{n}B_{1,j,L}^{\prime*}}} \right)} + {\eta_{L}B_{5,j}^{*}} + {\eta_{L}B_{5,j,L}^{\prime*}}}}$ for  L = 2, …  , n − 1, K_(j, n)^(*) := σ v_(n)B_(1, j, n)^(′*) + η_(n)B_(5, j, n)^(′*), k^(*) := (K_(1, 1)^(*), …  , K_(1, n)^(*), …  , K_(6, 1)^(*), …  , K_(6, n)^(*)) ∈ ??^(6n), return  tk_(v) := k^(*).

With reference to FIG. 8, the process of the Enc algorithm will be described.

S301 and S302 are the same as those in Embodiment 1, and thus will not be described.

(S303: Random Number Generation Step)

Using the processing device, the ciphertext generation part 230 generates random numbers, as indicated in Formula 145.

[Formula  145] $\omega,\varphi_{1},\ldots\mspace{14mu},{\varphi_{n}\overset{U}{\longleftarrow}{??}_{q}}$

(S304: Cipher Element Generation Step)

Using the processing device, the ciphertext generation part 230 generates an element f of a ciphertext ct_(x), as indicated in Formula 146. for j=1, . . . ,6, F _(j,1) :=ωx ₁ D″ _(1,j,1)+σ₁ D″ _(6,j,1), F _(j,L):=ω(x ₁ D″ _(1,j,L) +x _(L) D _(1,j))+φ₁ D″ _(6,j,L)+φ_(L) D _(6,j) for L=2, . . . ,n−1, F _(j,n) :=ωx ₁ D′″ _(1,j)+φ₁ D′″ _(6,j)+Σ_(L=2) ^(n)(ωx _(L) D″ _(1,j,L)+φ_(L) D″ _(6,j,L)), f:=(F _(1,1) , . . . ,F _(1,n) , . . . ,F _(6,1) , . . . ,F _(6,n))ε

^(6n)

(S305: Data Transmission Step)

Using the communication device and via the network, for example, the data transmission part 240 transmits the ciphertext ct_(x) including the element f generated in S304 to the conversion device 300. As a matter of course, the ciphertext ct_(x) may be transmitted to the conversion device 300 by another method.

In brief, in S301 through S304, the encryption device 200 generates the ciphertext ct_(x) by executing the Enc algorithm indicated in Formula 147. In S305, the encryption device 200 transmits the generated ciphertext ct_(x) to the conversion device 300.

$\left. \left. {\left\lbrack {{Formula}\mspace{14mu} 147} \right\rbrack{{Enc}\left( {{p\; k},{\overset{\rightarrow}{x} \in {??}_{q}^{n}}} \right.}} \right\} \right)\text{:}$ $\omega,\varphi_{1},\ldots\mspace{14mu},{\varphi_{n}\overset{U}{\longleftarrow}{??}_{q}},{{{for}\mspace{14mu} j} = 1},\ldots\mspace{11mu},6,{F_{j,1}:={{\omega\; x_{1}D_{1,j,1}^{''}} + {\varphi_{1}D_{6,j,1}^{''}}}},{F_{j,L}:={{\omega\left( {{x_{1}D_{1,j,L}^{''}} + {x_{L}D_{1,j}}} \right)} + {\varphi_{1}D_{6,j,L}^{''}} + {\varphi_{L}D_{6,j}}}}$ ${{{for}\mspace{14mu} L} = 2},\ldots\mspace{14mu},{n - 1},{F_{j,n}:={{\omega\; x_{1}D_{1,j}^{\prime\prime\prime}} + {\varphi_{1}D_{6,j}^{\prime\prime\prime}} + {\sum\limits_{L = 2}^{n}\left( {{\omega\; x_{L}D_{1,j,L}^{''}} + {\varphi_{L}D_{6,j,L}^{''}}} \right)}}},{f:={\left( {F_{1,1},\ldots\mspace{14mu},F_{1,n},\ldots\mspace{14mu},F_{6,1},\ldots\mspace{14mu},F_{6,n}} \right) \in {??}^{6n}}},{{{return}\mspace{14mu}{ct}_{x}}:={f.}}$

The Conv algorithm and the Query algorithm are the same as those in Embodiment 1, and thus will not be described. However, in S403 of the Conv algorithm, the random number y is generated as indicated in Formula 148.

[Formula  149] ${y\overset{U}{\longleftarrow}{span}}\left\langle {d_{{5n} + 1},\ldots\mspace{14mu},d_{6n}} \right\rangle$

Note that {D_(i,j), D′_(i,j,2), . . . , D′_(i,j,n), D″_(i,j,1), . . . , D″_(i,j,n−1), D′″_(i,j)}_(i=1,6;i,j=1, . . . , 6) which is a part of the output of the Setup algorithm is identified with the basis D^:=(d₁, . . . , d_(n), d_(5n+1), . . . , d_(6n)). The basis D:=(d₁, . . . , d_(6n)) is identified with {D_(i,j), D′_(i,j,2), . . . , D′_(i,j,n), D″_(i,j,1), . . . , D″_(i,j,n−1), D′″_(i,j)}_(i,j=1, . . . , 6).

{B*_(i,j), B′*_(i,j,2), . . . , B′*_(i,j,n), B″*_(i,j,1), . . . , B″*_(i,j,n−1), B′″*_(i,j)}_(i=1,5;i,j=1, . . . , 6) is identified with the basis B*^ :=(B*₁, . . . , B*_(n), B*_(4n+1), . . . , B*_(5n)). The basis B*:=(d*₁, . . . , d*_(6n)) is identified with {B*_(i,j), B′*_(i,j,2), . . . , B′*_(i,j,n), B″*_(i,j,1), . . . , B″*_(i,j,n−1),B′″*_(i,j)}_(i,j=1, . . . , 6).

Then, c and k* in the Query algorithm can be represented as indicated in Formula 149.

[Formula  149] ${c:=\left( {\overset{\overset{n}{︷}}{\omega\;\overset{\rightarrow}{x}},\overset{\overset{3n}{︷}}{0^{3n}},\overset{\overset{n}{︷}}{0^{n}},\overset{\overset{n}{︷}}{\overset{\rightarrow}{\varphi}}} \right)_{??}},{{{where}\mspace{14mu}\overset{\rightarrow}{\varphi}}:={\left( {\varphi_{1},\ldots\mspace{14mu},\varphi_{n}} \right) \in {??}_{q}^{n}}},{k^{*}:=\left( {\overset{\overset{n}{︷}}{\sigma\;\overset{\rightarrow}{v}},\overset{\overset{3n}{︷}}{0^{3n}},\overset{\overset{n}{︷}}{\overset{\rightarrow}{\eta}},\overset{\overset{n}{︷}}{0^{n}}} \right)_{{??}^{*}}},{{{where}\mspace{14mu}\overset{\rightarrow}{\eta}}:={\left( {\eta_{1},\ldots\mspace{14mu},\eta_{n}} \right) \in {??}_{q}^{n}}}$

As described above, in the cryptographic system 10 according to Embodiment 2, a sparse matrix is employed for generating the orthonormal bases B and B*. With this arrangement, it is possible while maintaining security to reduce the size of the public parameter and the size of the master secret key and reduce the time required for the process to generate a secret key to be given to a user and the time required for the encryption process.

It has been described in the above that the orthonormal bases B and B* are generated using the sparse matrix indicated in Formula 132. However, the sparse matrix to be employed for generating the orthonormal bases B and B* is not limited to this. For example, a plurality of μ in Formula 132 may be respectively different values. In Formula 132, all entries in the n-th column are random numbers other than the constant value 0. Alternatively, all entries in at least another column, instead of the n-th column, may be random numbers other than the constant value 0. Likewise, in Formula 132, all entries in the first row are random numbers other than the constant value 0. Alternatively, all entries in at least another row, instead of the first row, may be random numbers other than the constant value 0.

More generally, it is required for the sparse matrix that at least one value other than the constant value 0 is included in each row and each column. Further, when the sparse matrix is an n-row and n-column matrix, it is desirable that at least n pieces of different values are included as values other than the constant value 0. Further, it is desirable for the sparse matrix that all entries in at least one column are values other than the constant value 0. Further, it is desirable for the sparse matrix that all entries in at least one row are values other than the constant value 0. Further, it is desirable for the sparse matrix that diagonal entries and all entries in at least one column and at least one row are values other than the constant value 0. Further, it is desirable for the sparse matrix that the values of diagonal entries are the same except for a column where all entries are values other than the constant value 0.

Even when such a sparse matrix is used, the size of the public parameter and the size of the secret key are reduced compared to when a regular matrix is used. The processing times for generating a user key and for the encryption process are also reduced.

However, depending on the format of the linear transformation X, it may not be possible to reduce the number of pairing operations.

In the above description, the method for determining whether or not the ciphertext ct_(x) satisfies the condition which is set in the token tk_(v) has been described. With this method, it is possible to construct a secure search system in which the ciphertext et can be searched for while remaining encrypted.

However, as discussed in Non-Patent Literature 2, by embedding a message m in a ciphertext ct_(x), it is possible to construct a narrowly-defined cryptographic system in which the message m embedded in the ciphertext ct_(x) is retrieved with the token tk_(v).

Embodiment 3

Embodiment 3 describes an IPE-CC scheme which allows addition of an attribute category without reissuing a public parameter.

In Embodiment 3, what is the same as in Embodiment 1 will not be described, and differences from Embodiment 1 will be mainly described.

An attribute category is, for example, a classification of an attribute of each user, such as belonging organization, belonging department, position, age, and gender, or a classification of an attribute of a search condition.

Generally, attribute categories used for access control and search conditions are determined in advance at the design stage of a system. However, there may be a case where the operational rules of the system are changed at a later stage, necessitating addition of an attribute category used for access control and search conditions.

For example, suppose that a cryptographic system is constructed on the assumption that the system is to be used only within Company A. In this case, it is assumed that the attribute categories to be used for access control are belonging department, position, and individual ID, and the like. However, suppose that the operational rules are changed at a later stage so that the cryptographic system is used not only in Company A but also in an associated company of Company A. In this case, belonging company needs to be newly set as an attribute category to be used for access control.

In the IPE-CC scheme according to Embodiment 1, the basis vectors of the basis B and the basis B* are required for each attribute category. To add an attribute category, it is necessary to generate a new basis B and a new basis B* with increased dimensions. Because the basis B is included in the public parameter, the public parameter needs to be reissued and newly distributed to users. For this reason, an attribute category cannot be easily added at a later stage, and an operational mode that has not been taken into consideration at the design stage of the system cannot be flexibly adopted.

The configurations of the key generation device 100, the encryption device 200, the conversion device 300, and the decryption device 400 according to Embodiment 3 are respectively the same as the configurations of these devices illustrated in FIG. 2 to FIG. 5.

The flows of the Setup algorithm, the Enc algorithm, the Conv algorithm, and the Query algorithm according to Embodiment 3 are respectively the same as the flows of these algorithms illustrated in FIG. 6 and FIG. 8 to FIG. 10.

FIG. 11 is a flowchart illustrating the process of the TokenGen algorithm according to Embodiment 3.

With reference to FIG. 6, the process of the Setup algorithm will be described.

(S101: Orthonormal Basis Generation Step)

Using the processing device, the master key generation part 110 computes Formula 150, and thus generates a parameter param_(v), a basis B, and a basis B*.

$\begin{matrix} \left\lbrack {{Formula}\mspace{14mu} 150} \right\rbrack & \; \\ {{input}\mspace{14mu} 1^{\lambda}} & (1) \\ {{N_{0}:={1 + u_{0} + w_{0} + z_{0}}},{N_{1}:={4 + u + w + z}}} & (2) \\ {{param}_{??}:={\left( {q,{??},{??}_{T},g,e} \right)\overset{R}{\longleftarrow}{{??}_{bpg}\left( 1^{\lambda} \right)}}} & (3) \\ {\psi\overset{U}{\longleftarrow}{??}_{q}^{\times}} & (4) \end{matrix}$ For each t=0, 1, the following process (5) through (9) is executed.

$\begin{matrix} {{param}_{{??}_{t}}:={\left( {q,{??}_{t},{??}_{T},{??}_{t},e} \right):={{??}_{dpvs}\left( {1^{\lambda},N_{t},{param}_{??}} \right)}}} & (5) \\ {X_{t}:={\left( \chi_{t,i,j} \right)_{i,{j = 1},\ldots\mspace{14mu},N_{t}}\overset{U}{\longleftarrow}{{GL}\left( {N_{t},{??}_{q}} \right)}}} & (6) \\ {X_{t}^{*}:={\left( \vartheta_{t,i,j} \right)_{i,{j = 1},\ldots\mspace{14mu},N_{t}}:={\psi \cdot \left( X_{t}^{T} \right)^{- 1}}}} & (7) \\ {{b_{t,i}:={\left( {\overset{\rightarrow}{\chi}}_{t,i} \right)_{{??}_{t}} = {{\sum\limits_{j = 1}^{N_{t}}{\chi_{t,i,j}a_{t,j}\mspace{14mu}{for}\mspace{14mu} i}} = 1}}},\ldots\mspace{14mu},N_{t},{{??}_{t}:=\left( {b_{t,1},\ldots\mspace{14mu},b_{t,N_{t}}} \right)}} & (8) \\ {{b_{t,i}^{*}:={\left( {\overset{\rightarrow}{\vartheta}}_{t,i} \right)_{{??}_{t}} = {{\sum\limits_{j = 1}^{N_{t}}{\vartheta_{t,i,j}a_{t,j}\mspace{14mu}{for}\mspace{14mu} t}} = 1}}},\ldots\mspace{14mu},N_{t},{{??}_{t}^{*}:=\left( {b_{t,1}^{*},\ldots\mspace{14mu},b_{t,N_{t}}^{*}} \right)}} & (9) \\ {{g_{T}:={e\left( {g,g} \right)}^{\psi}},{{param}:=\left( {\left\{ {param}_{{??}_{t}} \right\}_{{t = 0},1},g_{T}} \right)}} & (10) \end{matrix}$

That is, the master key generation part 110 executes the following process (1) through (10).

(1) is the same as that in Embodiment 1, and thus will not be described.

(2) Using the processing device, the master key generation part 110 sets 1+u₀+w₀+z₀ in N₀, and sets 4+u+w+z in N₁. Note that u₀, w₀, z₀, u, w, and z are integers of 0 or more.

(3) Using the processing device, the master key generation part 110 executes the algorithm G_(bpg) taking as input the security parameter λ inputted in (1), and thus generates a parameter param_(G) of bilinear pairing groups.

(4) Using the processing device, the master key generation part 110 generates a random number ψ.

Then, the master key generation part 110 executes the following process (5) through (9) for each t=0, 1.

(5) Using the processing device, the master key generation part 110 executes the algorithm G_(dpvs) taking as input the security parameter λ inputted in (1), N_(t) set in (2), and the values of param_(G):=(q, G, G_(T), g, e) generated in (3), and thus generates values of a parameter param_(Vt):=(q, V_(t), G_(T), A_(t), e) of dual pairing vector spaces.

(6) Using the processing device, the master key generation part 110 takes as input N_(t) set in (2) and F_(q), and randomly generates a linear transformation X_(t):=(χ_(t,i,j))_(i,j). Note that (χ_(t,i,j))_(i,j) denotes a matrix concerning the suffixes i and j of the matrix χ_(t,i,j), where i, j=1, . . . , N_(t).

(7) Using the processing device, the master key generation part 110 generates a linear transformation X*_(t):=(ν_(t,i,j))_(i,j):=ψ·(X_(t) ^(T))⁻¹ based on the random number and the linear transformation X_(t). Like (χ_(t,i,j))_(i,j), (ν_(t,i,j))_(i,j) denotes a matrix concerning the suffixes i and j of the matrix ν_(t,i,j), where i, j=1, . . . , N_(t).

(8) Using the processing device, the master key generation part 110 generates a basis B_(t) from the canonical basis A_(t) generated in (5), based on the linear transformation X_(t) generated in (6). Note that {right arrow over (x)}_(t,i) denotes the i-th row of the linear transformation X_(t).

(9) Using the processing device and based on (ν_(t,i,j))_(i,j) generated in (7), the master key generation part 110 generates a basis B*_(t) from the canonical basis A_(t) generated in (5). Note that {right arrow over (v)}_(t,i) denotes the i-th row of the linear transformation X*_(t).

(10) Using the processing device, the master key generation part 110 sets e(g, g)^(ψ) in g_(T). The master key generation part 110 also sets {param_(Vt)}_(t=0,1) generated in (5) and g_(T) in param.

In the following description, for simplicity, the basis B₁ and the basis B*₁ will be described as the basis B and the basis B*.

(S102: Conversion Key Generation Step)

Using the processing device, the master key generation part 110 generates conversion information W₀ and W, as indicated in Formula 151. The master key generation part 110 designates the conversion information W₀ and W as a conversion key ck.

[Formula  151] ${W_{0}\overset{U}{\longleftarrow}{{GL}\left( {N_{0},{??}_{q}} \right)}},{W\overset{U}{\longleftarrow}{{GL}\left( {N_{1},{??}_{q}} \right)}}$

(S103: Public Key Generation Step)

Using the processing device, the master key generation part 110 converts the basis B₀ and the basis B which have been generated in S101 with the conversion information W₀ and W, as indicated in Formula 152, and thus generates a basis D₀ and a basis D. Then, using the processing device, the master key generation part 110 generates a subbasis D^₀ of the basis D₀ and a subbasis D^ of the basis D, as indicated in Formula 152. d _(0,i) :=b _(0,i) W ₀ for i=1, . . . ,1+u ₀ +w ₀ +z ₀, D ₀:=(d _(0,1) , . . . ,d _(0,1+u) ₀ _(+w) ₀ _(+z) ₀ ), {circumflex over (D)} ₀:=(d _(0,1) ,d _(0,1+u) ₀ _(+w) ₀ ₊₁ . . . ,d _(1+u) ₀ _(+w) ₀ _(+z) ₀ ), d _(i) :=b _(i) W for i=1, . . . ,4+u+w+z, D:=(d ₁ , . . . ,d _(4+u+w+z)), {circumflex over (D)}:=(d ₁ , . . . ,d _(4+u+w+1) . . . ,d _(4+u+w+z))  [Formula 152]

The master key generation part 110 designates a combination of the subbasis D^₀, the subbasis D^, the security parameter λ inputted in S101, and param_(V) generated in S101 as a public key pk.

(S104: Secret Key Generation Step)

Using the processing device, the master key generation part 110 generates a subbasis B^₀ of the basis B*₀ and a subbasis B*^ of the basis B*, as indicated in Formula 153, the bases B*₀ and B* having been generated in S101.

*₀:=(b* _(0,1) ,b* _(0,1+u) ₀ ₊₁ , . . . ,b* _(0,1+u) ₀ _(+w) ₀ ),

*:=(b* ₁ , . . . ,b* ₄ ,b* _(4+u+1) , . . . ,b* _(4+u+w))  [Formula 153]

The master key generation part 110 designates the subbasis B*^ ₀ and the subbasis B*^ that have been generated as a secret key sk.

(S105: Key Storage Step)

The master key storage part 120 stores the conversion key ck generated in S102, the public key pk generated in S103, and the secret key sk generated in S104 in the storage device.

In brief, in S101 through S104, the key generation device 100 generates the conversion key ck, the public key pk, and the secret key sk by executing the Setup algorithm indicated in Formula 154. Note that a G^(IPE) _(ob) algorithm is as indicated in Formula 155. In S105, the key generation device 100 stores the conversion key ck, the public key pk, and the secret key sk that have been generated in the storage device.

[Formula  154] Setup(1^(λ)): ( param , ( ?? 0 , ?? 0 * ) , ( ?? , ?? * ) ) ⁢ ⟵ R ⁢ ob IPE ⁡ ( 1 λ ) ${d_{0,i}:={{b_{0,i}W_{0}\mspace{14mu}{for}\mspace{14mu} i} = 1}},\ldots\mspace{14mu},{1 + u_{0} + w_{0} + z_{0}},{{??}_{0}:=\left( {d_{0,1},\ldots\mspace{14mu},d_{0,{1 + u_{0} + w_{0} + z_{0}}}} \right)},{{\hat{??}}_{0}:=\left( {d_{0,1},{d_{0,{1 + u_{0} + w_{0} + 1}}\ldots}\mspace{14mu},d_{1 + u_{0} + w_{0} + z_{0}}} \right)},{d_{i}:={{b_{i}W\mspace{14mu}{for}\mspace{14mu} i} = 1}},\ldots\mspace{14mu},{4 + u + w + z},{{??}:=\left( {d_{1},\ldots\mspace{14mu},d_{4 + u + w + z}} \right)},{\hat{??}:=\left( {d_{1},\ldots\mspace{14mu},d_{4},{d_{4 + u + w + 1}\ldots}\mspace{14mu},d_{4 + u + w + z}} \right)},{{\hat{??}}_{0}^{*}:=\left( {b_{0,1}^{*},{b_{0,{1 + u_{0} + 1},\ldots\mspace{14mu},}^{*}b_{0,{1 + u_{0} + w_{0}}}^{*}}} \right)},{{\hat{??}}^{*}:=\left( {b_{1}^{*},\ldots\mspace{14mu},b_{4}^{*},b_{4 + u + 1}^{*},\ldots\mspace{14mu},b_{4 + u + w}^{*}} \right)},{{{return}\mspace{14mu} p\; k}:=\left( {1^{\lambda},{param},{\hat{??}}_{0},\hat{??}} \right)},{{sk}:={\left( {{\hat{??}}_{0}^{*},{\hat{??}}^{*}} \right).\left\lbrack {{Formula}\mspace{14mu} 155} \right\rbrack}}$ : N 0 := 1 + u 0 + w 0 + z 0 , N 1 := 4 + u + w + z , ⁢ param ?? := ( q , ?? , ?? T , g , e ) ⁢ ⟵ R ⁢ bpg ⁢ ( 1 λ ) , ψ ⁢ ⟵ U ⁢ ?? q x , ⁢ for ⁢ ⁢ t = 0 , 1 , ⁢ param ?? t := ( q , ?? t , ?? T , ?? t , e ) := dpvs ⁢ ( 1 λ , N t , param ?? ) , ⁢ X t := ( χ t , i , j ) i , j = 1 , … ⁢ , N t ⁢ ⟵ U ⁢ GL ⁡ ( N t , ?? q ) , ⁢ X t * ⁡ ( ϑ t , i , j ) i , j = 1 , … ⁢ , N t := ψ · ( X t T ) - 1 , hereafter , χ → t , i ${and}\mspace{14mu}{\overset{\rightarrow}{\vartheta}}_{t,i}\mspace{14mu}{denote}\mspace{14mu}{the}\mspace{14mu} i\text{-}{th}\mspace{14mu}{rows}\mspace{14mu}{of}\mspace{14mu} X_{t}\mspace{14mu}{and}\mspace{14mu} X_{t}^{*}$ ${{{for}\mspace{14mu} i} = 1},\ldots\mspace{14mu},N_{t},{respectively},{b_{t,i}:={\left( {\overset{\rightarrow}{\chi}}_{t,i} \right)_{{??}_{t}} = {\sum\limits_{j = 1}^{N_{t}}{\chi_{t,i,j}a_{t,j}}}}}$ ${{{for}\mspace{14mu} i} = 1},\ldots\mspace{14mu},N_{t},{{??}_{t}:=\left( {b_{t,1},\ldots\mspace{14mu},b_{t,N_{t}}} \right)},{b_{t,i}^{*}:={\left( {\overset{\rightarrow}{\vartheta}}_{t,i} \right)_{{??}_{t}} = {\sum\limits_{j = 1}^{N_{t}}{\vartheta_{t,i,j}a_{t,j}}}}}$ for  i = 1, …  , N_(t), ??_(t)^(*) := (b_(t, 1)^(*), …  , b_(t, N_(t))^(*)), g_(T) := e(g, g)^(ψ), param := ({param_(??_(t))}_(t = 0, 1), g_(T)), return  (param, {??_(t), ??_(t)^(*)}_(t = 0, 1)).

With reference to FIG. 11, the process of the TokenGen algorithm will be described.

(S601: Information Input Step)

Using the input device, the information input part 130 takes as input a predicate vector {right arrow over (v)}:={(t, v_(t))|tεI_(v→)}. That is, the predicate vector {right arrow over (v)} is a vector having as elements an index t and predicate information v_(t) regarding the index t included in a set I_(v→). As the predicate information v_(t), attribute information of a user of a token tk_(v), a search keyword, and so on are set, for example.

(S602: Secret Information Generation Step)

Using the processing device, the token generation part 140 generates secret information s_(t) and s₀, as indicated in Formula 156.

[Formula  156] ${{{s_{t}\overset{U}{\longleftarrow}{??}_{q}}\mspace{14mu}{for}\mspace{14mu}\left( {t,v_{t}} \right)} \in \overset{\rightarrow}{v}},{s_{0}:={\sum\limits_{{({t,v_{t}})} \in \overset{\rightarrow}{v}}s_{t}}}$

(S603: Random Number Generation Step)

Using the processing device, the token generation part 140 generates random numbers, as indicated in Formula 157.

[Formula  157] ${{\overset{\rightarrow}{\eta}}_{0}:={\left( {\eta_{0,1},\ldots\mspace{14mu},\eta_{0,w_{0}}} \right)\overset{U}{\longleftarrow}{??}_{q}^{w_{0}}}},{\delta\overset{U}{\longleftarrow}{??}_{q}},{{{\mu_{t}\overset{U}{\longleftarrow}{??}_{q}}\mspace{14mu}{for}\mspace{14mu}\left( {t,v_{t}} \right)} \in \overset{\rightarrow}{v}},{{\overset{\rightarrow}{\eta}}_{t}:={{{\left( {\eta_{t,1},\ldots\mspace{14mu},\eta_{t,w}} \right)\overset{U}{\longleftarrow}{??}_{q}^{w}}\mspace{14mu}{for}\mspace{14mu}\left( {t,v_{t}} \right)} \in \overset{\rightarrow}{v}}}$

(S604: Token Element Generation Step)

Using the processing device, the token generation part 140 generates an element k*₀ of the token tk_(v), as indicated in Formula 158.

[Formula  158] $k_{0}^{*}:=\left( {{- s_{0}},\overset{u_{0}}{\overset{︷}{0^{u_{0}}}},\overset{W_{0}}{\overset{︷}{{\overset{\rightarrow}{\eta}}_{0}}},\overset{Z_{0}}{\overset{︷}{0^{z_{0}}}},} \right)_{{??}_{0}^{*}}$

Using the processing device, the token generation part 140 also generates an element k*_(t) of the token tk_(v) for the index t included in the set I_(v→), as indicated in Formula 159.

[Formula  159] $k_{t}^{*}:=\left( {{\overset{\overset{4}{︷}}{{\mu_{t}\begin{pmatrix} t & {{- 1},} \end{pmatrix}},{\delta\; v_{t}},s_{t}}\mspace{14mu}\overset{u}{\overset{︷}{0^{u}}}},\overset{w}{\overset{︷}{{\overset{\rightarrow}{\eta}}_{t}}},\overset{z}{\overset{︷}{0^{z}}}} \right)_{{??}^{*}}$

(S605: Token Distribution Step)

Using the communication device and via the network, for example, the token transmission part 150 distributes the token tk_(v) having the elements k*₀ and k*_(t) generated in S604 to the decryption device 400 in secrecy. As a matter of course, the token tk_(v) may be distributed to the decryption device 400 by another method.

In brief, in S601 through S604, the key generation device 100 generates the token tk_(v) by executing the TokenGen algorithm indicated in Formula 160. In S605, the key generation device 100 distributes the generated token tk_(v) to the decryption device 400.

[Formula  160] ${{TokenGen}\left( {{p\; k},{sk},{\overset{\rightarrow}{v}:=\left\{ \left( {t,v_{t}} \right) \middle| {t \in I_{\overset{\rightarrow}{v}}} \right\}}} \right)}\text{:}$ $\delta,{{{s_{t}\overset{U}{\longleftarrow}{??}_{q}}\mspace{14mu}{for}\mspace{14mu}\left( {t,v_{t}} \right)} \in \overset{\rightarrow}{v}}$ ${{\overset{\rightarrow}{\eta}}_{0}:={\left( {\eta_{0,1},\ldots\mspace{14mu},\eta_{0,w_{0}}} \right)\overset{U}{\longleftarrow}{??}_{q}^{w_{0}}}},{s_{0}:={\sum\limits_{{({t,v_{t}})} \in \overset{\rightarrow}{v}}s_{t}}},{k_{0}^{*}:=\left( {{- s_{0}},\overset{u_{0}}{\overset{︷}{0^{u_{0}}}},\overset{W_{0}}{\overset{︷}{{\overset{\rightarrow}{\eta}}_{0}}},\overset{Z_{0}}{\overset{︷}{0^{z_{0}}}},} \right)_{{??}_{0}^{*}}},{{{for}\mspace{11mu}\left( {t,v_{t}} \right)} \in \overset{\rightarrow}{v}},{\mu_{t}\overset{U}{\longleftarrow}{??}_{q}},{{\overset{\rightarrow}{\eta}}_{t}:={\left( {\eta_{t,1},\ldots\mspace{14mu},\eta_{t,w}} \right)\overset{U}{\longleftarrow}{??}_{q}^{w}}},{k_{t}^{*}:=\left( {{\overset{\overset{4}{︷}}{{\mu_{t}\begin{pmatrix} {t,} & {{- 1},} \end{pmatrix}},{\delta\; v_{t}},s_{t}}\mspace{14mu}\overset{u}{\overset{︷}{0^{u}}}},\overset{w}{\overset{︷}{{\overset{\rightarrow}{\eta}}_{t}}},\overset{z}{\overset{︷}{0^{z}}}} \right)_{{??}^{*}}},{{{return}\mspace{14mu}{sk}_{v}}:={\left( {k_{0}^{*},\left\{ k_{t}^{*} \right\}_{{({t,v_{t}})} \in \overset{\rightarrow}{v}}} \right).}}$

With reference to FIG. 8, the process of the Enc algorithm will be described.

S301 is the same as that in Embodiment 1, and thus will not be described.

(S302: Information Input Step)

Using the input device, the information input part 220 takes as input an attribute vector {right arrow over (x)}:={(t, x_(t))|tεI_(x→)}. That is, the attribute vector {right arrow over (x)} is a vector having as elements an index t and attribute information x_(t) regarding the index t included in a set I_(x→). In the attribute vector {right arrow over (x)}, attribute information of a user who is allowed to search and a search tag are set, for example.

(S303: Random Number Generation Step)

Using the processing device, the ciphertext generation part 230 generates random numbers, as indicated in Formula 161.

[Formula  161] $\omega,{\overset{\sim}{\omega}\overset{U}{\longleftarrow}{??}_{q}},{{\overset{\rightarrow}{\varphi}}_{0}:={\left( {\varphi_{0,1},\ldots\mspace{14mu},\varphi_{0,z_{0}}} \right)\overset{U}{\longleftarrow}{??}_{q}^{z_{0}}}},{{{\sigma_{t}\overset{U}{\longleftarrow}{??}_{q}}\mspace{14mu}{for}\mspace{11mu}\left( {t,x_{t}} \right)} \in \overset{\rightarrow}{x}},{{\overset{\rightarrow}{\varphi}}_{t} = {{{\left( {\varphi_{t,1},\ldots\mspace{14mu},\varphi_{t,z}} \right)\overset{U}{\longleftarrow}{??}_{q}^{z}}\mspace{14mu}{for}\mspace{14mu}\left( {t,x_{t}} \right)} \in \overset{\rightarrow}{x}}}$

(S304: Cipher Element Generation Step)

Using the processing device, the ciphertext generation part 230 generates an element f₀ of a ciphertext ct_(x), as indicated in Formula 162.

[Formula  162] $f_{0}:=\left( {\overset{\sim}{\omega},\overset{u_{0}}{\overset{︷}{0^{u_{0}}}},\overset{w_{0}}{\overset{︷}{0^{w_{0}}}},\overset{z_{0}}{\overset{︷}{{\overset{\rightarrow}{\varphi}}_{0}}},} \right)_{{??}_{0}}$

Using the processing device, the ciphertext generation part 230 also generates an element f_(t) of the ciphertext ct_(x) for the index t included in the set I_(x→), as indicated in Formula 163.

[Formula  163] ${f_{t} = \left( {{\overset{\overset{4}{︷}}{{\sigma_{t}\left( {1,t} \right)},{\omega\; x_{t}},\overset{\sim}{\omega}}\mspace{14mu}\overset{u}{\overset{︷}{0^{u}}}},\overset{w}{\overset{︷}{0^{w}}},\overset{z}{\overset{︷}{{\overset{\rightarrow}{\varphi}}_{t}}}} \right)_{??}},$

(S305: Data Transmission Step)

Using the communication device and via the network, for example, the data transmission part 240 transmits the ciphertext ct_(x) having the elements f₀ and f_(t) generated in S304 to the conversion device 300. As a matter of course, the ciphertext ct_(x) may be transmitted to the conversion device 300 by another method.

In brief, in S301 through S304, the encryption device 200 generates the ciphertext ct_(x) by executing the Enc algorithm indicated in Formula 164. In S305, the encryption device 200 transmits the generated ciphertext ct_(x) to the conversion device 300.

[Formula  164] ${{Enc}\left( {{p\; k},{\overset{\rightarrow}{x}:=\left\{ \left( {t,x_{t}} \right) \middle| {t \in I_{\overset{\rightarrow}{x}}} \right\}}} \right)}\text{:}$ $\omega,{\omega\overset{U}{\longleftarrow}{??}_{q}},{{\overset{\rightarrow}{\varphi}}_{0}:={\left( {\varphi_{0,1},\ldots\mspace{14mu},\varphi_{0,z_{0}}} \right)\overset{U}{\longleftarrow}{??}_{q}^{z_{0}}}},{f_{0}:=\left( {\overset{\sim}{\omega}\;,\overset{u_{0}}{\overset{︷}{0^{u_{0}}}},\overset{w_{0}}{\overset{︷}{0^{w_{0}}}},\overset{z_{0}}{\overset{︷}{{\overset{\rightarrow}{\varphi}}_{0}}}} \right)_{{??}_{0}}},{{{for}\mspace{14mu}\left( {t,x_{t}} \right)} \in \overset{\rightarrow}{x}},{\sigma_{t}\overset{U}{\longleftarrow}{??}_{q}},{{\overset{\rightarrow}{\varphi}}_{t}:={\left( {\varphi_{t,1},\ldots\mspace{14mu},\varphi_{t,z}} \right)\overset{U}{\longleftarrow}{??}_{q}^{z}}},{f_{t} = \left( {{\overset{\overset{4}{︷}}{{\sigma_{t}\left( {1,t} \right)},{\omega\; x_{t}},\overset{\sim}{\omega}}\mspace{14mu}\overset{u}{\overset{︷}{0^{u}}}},\overset{w}{\overset{︷}{0^{w}}},\overset{z}{\overset{︷}{{\overset{\rightarrow}{\varphi}}_{t}}}} \right)_{??}},{{{return}\mspace{14mu}{ct}_{x}}:={\left( {f_{0}\left\{ f_{t} \right\}_{{({t,x_{t}})} \in \overset{\rightarrow}{x}}} \right).}}$

With reference to FIG. 9, the process of the Conv algorithm will be described.

(S401: Conversion Key Acquisition Step)

Using the communication device and via the network, for example, the conversion key acquisition part 310 obtains the conversion key ck:=(W₀, W) transmitted by the key generation device 100. The conversion key acquisition part 310 also obtains the public key pk generated by the key generation device 100.

(S402: Ciphertext Acquisition Step)

Using the communication device and via the network, for example, the ciphertext acquisition part 320 receives the ciphertext ct_(x):=(f₀, f) transmitted by the encryption device 200.

(S403: Random Number Generation Step)

Using the processing device, the ciphertext conversion part 330 generates random numbers, as indicated in Formula 165.

[Formula  165] ${\rho_{0}\overset{U}{\longleftarrow}{??}_{q}},{{y_{0}\overset{U}{\longleftarrow}{span}}\left\langle {d_{1 + u_{0} + w_{0} + 1},\ldots\mspace{14mu},d_{1 + u_{0} + w_{0} + z_{0}}} \right\rangle},{\rho\overset{U}{\longleftarrow}{??}_{q}},{{y\overset{U}{\longleftarrow}{span}}\left\langle {d_{4 + u + w + 1},\ldots\mspace{14mu},d_{4 + u + w + z}} \right\rangle}$

(S404: Ciphertext Conversion Step)

Using the processing device, the ciphertext conversion part 330 coverts the ciphertext ct_(x), as indicated in Formula 166, and thus generates an element c₀ and an element c_(t). c ₀:=(ρ₀ f ₀ +y ₀)W ₀ ⁻¹, c _(t):=(ρf+y)W ⁻¹  [Formula 166]

(S405: Data Transmission Step)

Using the communication device and via the network, for example, the data transmission part 340 transmits the ciphertext CT_(x) including the element c₀ and the element c_(t) generated in S404 to the decryption device 400. As a matter of course, the ciphertext CT_(x) may be transmitted to the decryption device 400 by another method.

In brief, in S401 through S404, the conversion device 300 generates the ciphertext CT_(x) by executing the Conv algorithm indicated in Formula 167. In S405, the conversion device 300 transmits the generated ciphertext CT_(x) to the decryption device 400.

[Formula  167] Conv(p k, ck := W, ct_(x) := f): ${\rho_{0}\overset{U}{\longleftarrow}{??}_{q}},{{y_{0}\overset{U}{\longleftarrow}{span}}\left\langle {d_{1 + u_{0} + w_{0} + 1},\ldots\mspace{14mu},d_{1 + u_{0} + w_{0} + z_{0}}} \right\rangle},{\rho\overset{U}{\longleftarrow}{??}_{q}},{{y\overset{U}{\longleftarrow}{span}}\left\langle {d_{n + u + w + 1},\ldots\mspace{14mu},d_{n + u + w + z}} \right\rangle},{c_{0}:={\left( {{\rho_{0}f_{0}} + y_{0}} \right)W_{0}^{- 1}}},{c_{t}:={\left( {{\rho\; f} + y} \right)W^{- 1}}}$ return  CT_(x) := (c₀, c).

With reference to FIG. 10, the process of the Query algorithm will be described.

(S501: Token Acquisition Step)

Using the communication device and via the network, for example, the token acquisition part 410 obtains the token tk_(v):=(k*₀, k*_(t)) transmitted by the key generation device 100. The token acquisition part 410 also obtains the public key pk generated by the key generation device 100.

(S502: Ciphertext Acquisition Step)

Using the communication device and via the network, for example, the ciphertext acquisition part 420 receives the ciphertext CT_(x):=(c₀, c_(t)) transmitted by the conversion device 300.

(S503: Decryption Step)

Using the processing device, the decryption part 430 outputs 1 indicating that decryption has been successful if the set I_(v→) is a subset of the set I_(x→) and a result of computing a pairing operation e(c₀, k*₀)·Π_(tεIv→)e(c_(t), k*_(t)) is 1, and outputs 0 indicating that decryption has failed if the result is not 1.

In brief, in S501 through S503, the decryption device 400 executes the Query algorithm indicated in Formula 168, and thus determines whether or not decryption has been successful. Query(pk,tk _(ν):=(k* ₀ ,k* _(t)),CT _(x):=(c ₀ ,c _(t))): if I _({right arrow over (ν)}) ⊂I _({right arrow over (x)}) and e(c ₀ ,k* ₀)·Π_(tεI) _({right arrow over (ν—)}) e(c _(t) ,k* _(t))=1,output 1, otherwise, output 0.  [Formula 168]

As described above, in the inner-product predicate encryption scheme according to Embodiment 3, if the set I_(v→) is a subset of I_(x→) and the sum of v_(t)x_(t) for the index t included in the set I_(v→) is 0, the ciphertext ct_(x) can be decrypted with the token tk_(v) even when the dimensions of the attribute vector {right arrow over (x)} and the predicate vector {right arrow over (v)} are not the same.

In the inner-product predicate encryption scheme according to Embodiment 3, μ_(t)t and −μ_(t) are respectively set as the coefficient of the basis vectors b*₁ and b*₂ (basis vector b*_(index)) for the element k*_(t) of the decryption key sk_(v). In the cryptographic system 10, σ_(t) and σ_(t)t are respectively set as the coefficient of the basis vectors b₁ and b₂ (basis vector b_(index)) for the element c_(t) of the ciphertext ct_(x).

Because of these arrangements, when a pairing operation is performed on the element k*_(t) and the element c_(t) for the corresponding index t, an inner-product of 0 is obtained for portions constituted by the basis vectors b*₁ and b*₂ and the basis vectors b₁ and b₂, which are thus canceled out. That is, when a pairing operation is performed on the element k*_(t) and the element c_(t) for the corresponding index t, the index parts that are set as the coefficients of the basis vectors (portions constituted by the basis vectors b*₁ and b*₂ and the basis vectors b₁ and b₂) are canceled out, and a result of the pairing operation for the remaining portions can be obtained.

In the inner-product predicate encryption scheme according to Embodiment 3, the index parts are provided, so that the bases that are used for every attribute category can be constructed as the common bases (basis B and basis B*). As a result, only the basis B and the basis B* need to be included in a public parameter, eliminating the need for reissuing the public parameter when an attribute category is to be added at a later stage.

For the index parts, it is required that 0 be obtained as a result of an inner-product operation of the index parts. Therefore, although the 2-dimensional index parts, namely the basis vectors b*₁ and b*₂ and the basis vectors b₁ and b₂, are employed in the above description, the index parts are not limited to 2-dimensional and may be 3-dimensional or higher-dimensional. The values assigned to the index parts are not limited to those described above, and a different assignment arrangement may be employed.

In the above, the IPE-CC scheme corresponding to Type 1 of Non-Patent Literature 4 has been described in which decryption is possible if the set I_(v→) is a subset of set I_(x→).

However, by applying the above-described algorithms in a similar manner, it is possible to construct an IPE-CC scheme corresponding to Type 2 of Non-Patent Literature 4 (IPE-CC scheme in which decryption is possible if the set I_(x→) is a subset of the set I_(v→)) and an IPE-CC scheme corresponding to Type 0 of Non-Patent Literature 4 (IPE-CC scheme in which decryption is possible if the set I_(v→) is a subset of the set I_(x→) and the set I_(x→) is a subset of the I_(v→)).

In the above, the method for determining whether or not the ciphertext ct_(x) satisfies the condition which is set in the token tk_(v) has been described. With this method, a secure search system can be constructed in which the ciphertext ct_(x) can be searched for while remaining encrypted.

However, as described in Non-Patent Literature 2 and so on, by embedding a message m in a ciphertext ct_(x), a narrowly-defined cryptographic system can be constructed in which the message m embedded in the ciphertext ct_(x) is retrieved with the token tk_(v).

Embodiment 4

Embodiment 4 briefly describes that an IPE-CC scheme having a delegation system is constructed by applying the construction of Non-Patent Literature 2 to the IPE-CC scheme described in the above embodiments.

An example in which the IPE-CC scheme described in Embodiment 1 is provided with a delegation system will be presented herein. Formula 169 through Formula 173 indicate the Setup algorithm, the TokenGen algorithm, and the Enc algorithm, the Query algorithm, and the Delegate algorithm when the IPE-CC scheme described in Embodiment 1 is provided with the delegation system. The Conv algorithm is the same as that in Embodiment 1, and thus will not be described.

For simplicity, an IPE-CC scheme with a two-layer delegation system will be described herein. However, by applying the scheme presented herein, an IPE-CC scheme having a d-layer (d is an integer of 3 or more) delegation system can be easily implemented.

[Formula  169] Setup(1^(λ), (n₁, n₂)): n := n 1 + n 2 , ⁢ ( param ?? , ?? := ( b 1 , … ⁢ , b n + u + w + z ) , ⁢ ?? * := ( b 1 * , … ⁢ , b n + u + w + z * ) ) ⁢ ⟵ R ⁢ ob IPE ⁢ ( 1 λ , n ) , ⁢ W ⁢ ⟵ U ⁢ GL ⁡ ( N , ?? q ) , ⁢ d i := b i ⁢ W ⁢ ⁢ for ⁢ ⁢ i = 1 , … ⁢ , n + u + w + z , ⁢ ?? := ( d 1 , … ⁢ , d n + u + w + z ) , ⁢ ?? ^ := ( d 1 , … ⁢ , d n , d n + u + w + 1 ⁢ … ⁢ , d n + u + w + z ) , ⁢ ?? ^ * := ( b 1 * , … ⁢ , b n * , b n + u + 1 * , … ⁢ , b n + u + w * ) , ⁢ return ⁢ ⁢ p ⁢ ⁢ k := ( 1 λ , param ?? , ?? ^ ) , ck := W , sk := ?? ^ * . ⁢ ob IPE ⁢ ( 1 λ , n ) : ⁢ N := n + u + w + z , ⁢ param ?? := ( q , ?? , ?? T , g , e ) ⁢ ⟵ R ⁢ bpg ⁢ ( 1 λ ) , ⁢ param ?? ′ := ( q , ?? , ?? T , ?? , e ) ⁢ ⟵ R ⁢ dpvs ⁢ ( 1 λ , N ) , ⁢ ψ ⁢ ⟵ U ⁢ ?? q x , g T := e ⁡ ( g , g ) ψ , ⁢ X := ( χ i , j ) ⁢ ⟵ U ⁢ GL ⁡ ( N , ?? q ) , ( ϑ i , j ) := ψ · ( X T ) - 1 , ⁢ param ?? := ( param ?? ′ , g T ) , ⁢ b i := ∑ j = 1 N ⁢ χ i , j ⁢ a j , ?? := ( b 1 , … ⁢ , b N ) , ⁢ b i * := ∑ j = 1 N ⁢ ϑ i , j ⁢ a j , ?? * := ( b 1 * , … ⁢ , b N * ) , ⁢ return ⁢ ⁢ ( param ?? , ?? , ?? * ) . ⁢ [ Formula ⁢ ⁢ 170 ] ${{TokenGen}\left( {{p\; k},{sk},{{\overset{\rightarrow}{v}}_{1} \in {{??}_{q}^{n_{1}}\backslash\left\{ \overset{\rightarrow}{0} \right\}}}} \right)}\text{:}$ $\delta,{\phi\overset{U}{\longleftarrow}{??}_{q}},{\overset{\rightarrow}{\eta}}_{0},{\overset{\rightarrow}{\eta}}_{1},\ldots\mspace{14mu},{{\overset{\rightarrow}{\eta}}_{n_{2}}\overset{U}{\longleftarrow}{??}_{q}^{w}},{k_{0}^{*}:=\left( {\overset{\overset{n}{︷}}{{\sigma\; v_{1}},0^{n_{2}}},\overset{u}{\overset{︷}{0^{u}}},\overset{w}{\overset{︷}{{\overset{\rightarrow}{\eta}}_{0}}},\overset{z}{\overset{︷}{0^{z}}}} \right)_{{??}^{*}}},{k_{i}^{*}:=\left( {\overset{\overset{n}{︷}}{{\sigma\;{\overset{\rightarrow}{v}}_{1}},{\phi\;{\overset{\rightarrow}{e}}_{i}}},\overset{u}{\overset{︷}{0^{u}}},\overset{w}{\overset{︷}{{\overset{\rightarrow}{\eta}}_{i}}},\overset{z}{\overset{︷}{0^{z}}}} \right)_{{??}^{*}}},{{{for}\mspace{14mu} i} = 1},\ldots\mspace{14mu},n_{2},{{{where}\mspace{14mu}{\overset{\rightarrow}{e}}_{i}}:=\left( {0^{i - 1},1,0^{n_{2} - i}} \right)},{{{return}\mspace{14mu}{tk}_{v_{1}}}:={\left( {k_{0}^{*},k_{1}^{*},\ldots\mspace{14mu},k_{n_{2}}^{*}} \right).\left\lbrack {{Formula}\mspace{14mu} 171} \right\rbrack}}$ ${{Enc}\left( {{p\; k},{{\overset{\rightarrow}{x}}_{1} \in {{??}_{q}^{n_{1}}\backslash\left\{ \overset{\rightarrow}{0} \right\}}},{{\overset{\rightarrow}{x}}_{2} \in {??}_{q}^{n_{2}}}} \right)}\text{:}$ $\tau_{1},{\tau_{2}\overset{U}{\longleftarrow}{??}_{q}},{\overset{\rightarrow}{\xi}\overset{U}{\longleftarrow}{??}_{q}^{z}},{{{if}\mspace{14mu}{\overset{\rightarrow}{x}}_{2}} = \overset{\rightarrow}{0}},{{\overset{\rightarrow}{x}}_{2}^{\prime}\overset{U}{\longleftarrow}{??}_{q}^{n_{2}}},{{{else}\mspace{14mu}{\overset{\rightarrow}{x}}_{2}^{\prime}}:={\overset{\rightarrow}{x}}_{2}^{\prime}},{f:=\left( {\overset{\overset{n}{︷}}{{\tau_{1}{\overset{\rightarrow}{x}}_{1}},{\tau_{2}{\overset{\rightarrow}{x}}_{2}^{\prime}}},\overset{u}{\overset{︷}{0^{u}}},\overset{w}{\overset{︷}{0^{w}}},\overset{z}{\overset{︷}{\overset{\rightarrow}{\xi}}}} \right)_{??}},{{{return}\mspace{14mu}{ct}_{x}}:={f.\left\lbrack {{Formula}\mspace{14mu} 172} \right\rbrack}}$ Query(p k, tk := tk_(v₁)  or  tk_((v₁, v₂)), CT_(x) := c): ${{{if}\mspace{14mu}{tk}} = {{tk}_{v_{1}} = \left( {k_{0}^{*},k_{1}^{*},\ldots\mspace{14mu},k_{n_{2} - n_{1}}^{*}} \right)}},{{{if}\mspace{14mu}{e\left( {c,k_{0}^{*}} \right)}} = 1},{{output}\mspace{14mu} 1},{otherwise},{{{output}\mspace{14mu} 0{if}\mspace{14mu}{tk}} = {{tk}_{({v_{1},v_{2}})} = {\overset{\sim}{k}}^{*}}},{{{if}\mspace{14mu}{e\left( {c,k^{*}} \right)}} = 1},{{output}\mspace{14mu} 1},{otherwise},{{output}\mspace{14mu}{0.\left\lbrack {{Formula}\mspace{14mu} 173} \right\rbrack}}$ ${{{Delegate}\left( {{p\; k},{{tk}_{v_{1}}:=\left( {k_{0}^{*},k_{1}^{*},\ldots\mspace{14mu},k_{n_{2}}^{*}} \right)},{{\overset{\rightarrow}{v}}_{2}:={\left( {v_{2,1},\ldots\mspace{14mu},v_{2,n_{2}}} \right) \in {{??}_{q}^{n_{2}}\backslash\left\{ \overset{\rightarrow}{0} \right\}}}}} \right)}:\xi},{\delta\overset{U}{\longleftarrow}{??}_{q}},{{\overset{\rightarrow}{\eta}}^{\prime}:={\left( {{\overset{\rightarrow}{\eta}}_{1}^{\prime},\ldots\mspace{14mu},{\overset{\rightarrow}{\eta}}_{n}^{\prime}} \right)\overset{U}{\longleftarrow}{??}_{q}^{n}}},{{\overset{\sim}{k}}^{*}:={{\xi\; k_{0}^{*}} + {\delta\left( {\sum\limits_{i = 1}^{n_{2}}{v_{2,i}k_{i}^{*}}} \right)} + {\sum\limits_{i = 1}^{n}{{\overset{\rightarrow}{\eta}}_{i}^{\prime}b_{{4n} + i}^{*}}}}},{{{return}\mspace{14mu}{tk}_{({{\overset{\rightarrow}{v}}_{1},{\overset{\rightarrow}{v}}_{2}})}} = {{tk}_{({{\overset{\rightarrow}{v}}_{1}\bigwedge{\overset{\rightarrow}{v}}_{2}})}:={{\overset{\sim}{k}}^{*}.}}}$

Embodiment 5

Embodiment 5 describes a secure search system 500 which is an application of the cryptographic system 10 described in the above embodiments to a medical information DB (database).

FIG. 12 is a configuration diagram of the secure search system 500 according to Embodiment 5.

The secure search system 500 includes a PKG 510, a plurality of hospitals 520, a helper 530, a plurality of pharmaceutical companies 540, and a medical information DB 550.

Using the key generation device 100, the PKG executes the Setup algorithm, and thus generates a public key pk:=D^, a secret key sk:=B*^ , and a conversion key ck:=W.

Using the encryption device 200, each hospital 520 executes the Enc algorithm, and thus generates a ciphertext ct_(x) in which the DNA information of a patient or the like is encrypted. Then, each hospital 520 registers the generated ciphertext ct_(x) in the medical information DB 550.

Using the conversion device 300, the helper 530 executes the Conv algorithm, and thus converts the ciphertext ct_(x) registered in the medical information DB 550 to generate a ciphertext CT_(x). The helper 530 registers the generated ciphertext CT_(x) in the medical information DB 550.

Each pharmaceutical company 540, who conducts a search, transmits a predicate vector {right arrow over (v)} in which its own attribute information is set to the PKG 510 from a terminal such as a PC (Personal Computer). Then, using the key generation device 100, the PKG 510 executes the TokenGen algorithm, and thus generates a token tk_(v) based on the transmitted predicate vector {right arrow over (v)}. Then, the PKG 510 transmits the generated token tk_(v) to the pharmaceutical company who has transmitted the predicate vector {right arrow over (v)}.

After receiving the token tk_(v), the pharmaceutical company 540 transmits a token tk_(v^ω) in which a search condition ({right arrow over (ω)}) is set in the received token tk_(v) to the medical information DB 550 from the terminal to request a search based on the token tk_(v). As a method for setting the search condition ({right arrow over (ω)}) in the token tk_(v), there is a method in which the delegation described in Embodiment 4 is adapted.

Upon receiving the request for the search, the medical information DB 550 executes the Query algorithm on each registered ciphertext CT_(x) and the transmitted token tk_(v) using the decryption device 400, and transmits a result to the pharmaceutical company 540 who has requested the search. The result to be transmitted may include an identifier or the like of the ciphertext CT_(x) that has been decrypted by the Query algorithm.

FIG. 13 is a configuration diagram of a secure search system 500 having a different configuration from that of FIG. 12.

The secure search system 500 illustrated in FIG. 13 differs from the secure search system 500 illustrated in FIG. 12 in that the helper 530 is positioned between the pharmaceutical company 540 and the medical information DB 550.

In the secure search system 500 illustrated in FIG. 12, the helper 530 generates a ciphertext CT_(x) and registers the ciphertext CT_(x) in the medical information DB 550. After receiving a request for a search, the medical information DB 550 executes the Query algorithm and returns a result to the pharmaceutical company 540.

In the secure search system 500 illustrated in FIG. 13, when the helper 530 receives a request for a search, the helper 530 executes the Conv algorithm, and thus converts each ciphertext ct_(x) registered in the medical information DB 550 to generate a ciphertext CT_(x). Then, using the decryption device 400, the helper 530 executes the Query algorithm on each ciphertext CT_(x) that has been generated and the transmitted token tk_(v), and transmits a result to the pharmaceutical company 540 who has requested the search.

In the above description, the hospital 520 and the pharmaceutical company 540 are examples, and may be replaced by other establishments.

Embodiment 6

In the above embodiments, the methods for implementing the cryptographic processes in dual vector spaces have been described. In Embodiment 6, a method for implementing the cryptographic processes in dual modules will be described.

That is, in the above embodiments, the cryptographic processes are implemented in cyclic groups of prime order q. However, when a ring R is expressed using a composite number M as indicated in Formula 174, the cryptographic processes described in the above embodiments can be adapted to a module having the ring R as a coefficient.

:=

/M

  [Formula 174] where

: integer, and M: composite number.

By changing F_(q) to R in the algorithms described in the above embodiments, the cryptographic processes in dual additive groups can be implemented.

FIG. 14 is a diagram illustrating an example of the hardware configuration of the key generation device 100, the encryption device 200, the conversion device 300, and the decryption device 400 presented in the above embodiments.

Each of the key generation device 100, the encryption device 200, the conversion device 300, and the decryption device 400 is a computer, and each component of the key generation device 100, the encryption device 200, the conversion device 300, and the decryption device 400 can be implemented by a program.

As the hardware configuration of the key generation device 100, the encryption device 200, the conversion device 300, and the decryption device 400, an arithmetic device 901, an external memory device 902, a main memory device 903, a communication device 904, and an input/output device 905 are connected to a bus.

The arithmetic device 901 is a CPU (Central Processing Unit) or the like that executes programs. The external memory device 902 is, for example, a ROM (Read Only Memory), a flash memory, a hard disk device, and the like. The main memory device 903 is a RAM (Random Access Memory) and the like. The communication device 904 is a network card and the like. The input/output device 905 is, for example, a mouse, a keyboard, a display device, and the like.

The programs are normally stored in the external memory device 902, and are loaded into the main memory device 903 to be sequentially read and executed by the arithmetic device 901.

The programs realize the functions described as the master key generation part 110, the master key storage part 120, the information input part 130, the token generation part 140, the token transmission part 150, the public key acquisition part 210, the information input part 220, the ciphertext generation part 230, the data transmission part 240, the conversion key acquisition part 310, the ciphertext acquisition part 320, the ciphertext conversion part 330, the data transmission part 340, the token acquisition part 410, the ciphertext acquisition part 420, and the decryption part 430.

Further, the external memory device 902 stores an operating system (OS). At least a part of the OS is loaded into the main memory device 903. The arithmetic device 901 executes the programs while executing the OS.

Information, data, signal values, and variable values indicating results of processes described as “compute”, “receive”, “transmit” and so on in the description of Embodiments 1 to 6 are stored as files in the main memory device 903.

The configuration of FIG. 14 is an example of the hardware configuration of the key generation device 100, the encryption device 200, the conversion device 300, and the decryption device 400. The hardware configuration of the key generation device 100, the encryption device 200, the conversion device 300, and the decryption device 400 is not limited to and may be different from the configuration described in FIG. 14.

REFERENCE SIGNS LIST

10: cryptographic system, 100: key generation device, 110: master key generation part, 120: master key storage part, 130: information input part, 140 token generation part, 150: token transmission part, 200: encryption device, 210 public key acquisition part, 220: information input part, 230: ciphertext generation part, 240: data transmission part, 300: conversion device, 310: conversion key acquisition part, 320: ciphertext acquisition part, 330: ciphertext conversion part, 340: data transmission part, 400: decryption device, 410: token acquisition part, 420: ciphertext acquisition part, 430: decryption part, 901: arithmetic device, 902: external memory device, 903: main memory device, 904: communication device, 905: input/output device 

The invention claimed is:
 1. A cryptographic system for concealment of both attribute information and predicate information in a search query, the system comprising: an encryption device that generates a ciphertext ct_(x) in which attribute information x is set as a coefficient of a basis vector of a basis D; a conversion device that converts, using conversion information W, the basis D of the ciphertext ct_(x) generated by the encryption device to a basis B so as to generate a ciphertext CT_(x); and a decryption device that decrypts the ciphertext CT_(x) generated by the conversion device with a token tk_(v) in which predicate information v is set as a coefficient of a basis vector of a basis B* corresponding to the basis B, determines whether or not the ciphertext condition which is set in the token tk_(v) based on the decryption of the ciphertext CTx, and outputs result of the query based on the determination.
 2. The cryptographic system according to claim 1, wherein the decryption device decrypts the ciphertext CT_(x) by performing a pairing operation on the ciphertext CT_(x) and the token tk_(v) and thereby computing an inner-product of the attribute information x and the predicate information v.
 3. The cryptographic system according to claim 2, wherein the encryption device generates the ciphertext ct_(x) including an element f indicated in Formula 1 wherein the conversion device generates a ciphertext CT_(x) including an element c indicated in Formula 2, and wherein the decryption device decrypts the ciphertext CT_(x) by performing a pairing operation indicated in Formula 3 [Formula  1] ${f:={\left( \overset{n}{\overset{︷}{\tau\;\overset{\rightarrow}{x}}} \right)D{where}{\tau\overset{U}{\longleftarrow}F_{q}}}},{\overset{\rightarrow}{x}:=x_{1}},\ldots\mspace{14mu},x_{n},{and}$ x₁, …  , x_(n)  is  the  attribute  information  x;[Formula  2] c := ρ f ⋅ W⁻¹ where ${\rho\overset{U}{\longleftarrow}F_{q}},{d_{i}:={{b_{i}W\mspace{14mu}{for}\mspace{14mu} i} = 1}},\ldots\mspace{14mu},n,{D:=\left( {d_{1},\ldots\mspace{14mu},d_{n}} \right)},{and}$ B := (b₁, …  , b_(n))[Formula  3] e(c, k^(*)) where ${k^{*}:={\left( \overset{n}{\overset{︷}{\sigma\overset{\rightarrow}{v}}} \right)B^{*}}},{\overset{\rightarrow}{v}:=v_{1}},\ldots\mspace{14mu},v_{n},{and}$ v₁, …  , v_(n)  is  the  predicate  information  v.
 4. The cryptographic system according to claim 1, wherein the basis B and the basis B* are orthonormal bases in dual pairing vector spaces.
 5. The cryptographic system according to claim 1, wherein the basis B and the basis B* are bases that are generated by modifying a basis A which is predetermined using a sparse matrix having at least one value other than a constant value 0 in each row and in each column.
 6. The cryptographic system according to claim 5, wherein the basis B and the basis B* are bases that are generated from the basis A, as indicated in Formula 5, using an N-row and N-column (N being an integer of n or more) linear transformation X whose values in a first row in a first column through in an n-th row in an n-th column are a sparse matrix indicated in Formula 4 [Formula  4] $\begin{pmatrix} \mu_{1}^{''} & \mu_{2}^{''} & \cdots & \mu_{n - 1}^{''} & \mu^{\prime\prime\prime} \\ \; & \mu & \; & \; & \mu_{2}^{\prime} \\ \; & \; & \ddots & \; & \vdots \\ \; & \; & \; & \; & \mu_{n - 1}^{\prime} \\ \; & \; & \; & \; & \mu_{n}^{\prime} \end{pmatrix}$ where μ, μ′₂, . . . , μ′_(n), μ″₁, . . . , μ″_(n−1), and μ′″ are predetermined values other than the constant value 0, and a blank element denotes the constant value 0, b _(i):=Σ_(j=1) ^(N) X _(i,j) a _(j) for i=1, . . . ,N,B:=(b ₁ , . . . ,b _(N)), ∂_(i,j):=ψ·(X ⁻¹)^(T), b* _(i):=Σ_(i=j) ^(N)∂_(i,j) a _(j) for i=1, . . . ,N,B*:=(b* ₁ , . . . ,b* _(N))  [Formula 5] where X_(i,j) denotes an entry in an i-th row in a j-th column in the linear transformation X, ψ is a predetermined value, and a_(j) is a j-th basis vector of the basis A.
 7. The cryptographic system according to claim 1, wherein the encryption device generates the ciphertext ct_(x) including, for each index t included in a set I_(x), an element c_(t) in which information J_(t) which is assigned to the index t in advance is set as a coefficient of a basis vector d_(index) of the basis D, and attribute information x_(t) among the attribute information x is set as a coefficient of another basis vector of the basis D, and wherein the decryption device decrypts the ciphertext CT_(x) with the token tk_(v) including, for each index t included in a set I_(v), an element k_(t) in which information J*_(t) having an inner-product of 0 with the information J_(t) is set as a coefficient of a basis vector b*_(index) of the basis B* corresponding to the basis vector d_(index), and predicate information v_(t) among the predicate information v is set as a coefficient of another basis vector of the basis B*.
 8. The cryptographic system according to claim 1, wherein the encryption device generates a ciphertext ct_(x) in which genetic information is set as the attribute information x, and wherein the decryption device decrypts the ciphertext CT_(x) with the token tk_(v) so as to search for a ciphertext CT_(x) having genetic information satisfying a condition which is set in the token tk_(v).
 9. A cryptographic method for concealment of both attribute information and predicate information in a query, the method comprising: generating a ciphertext ct_(x) in which attribute information x is set as a coefficient of a basis vector of a basis D, by an encryption device; converting, using conversion information W, the basis D of the generated ciphertext ct_(x) to a basis B so as to generate a ciphertext CT_(x), by a conversion device; decrypting the generated ciphertext CT_(x), with a token tk_(v) in which predicate information v is set as a coefficient of a basis vector of a basis B* corresponding to the basis B, by a decryption device; determining whether or not the ciphertext ct_(x) satisfies a condition which is set in the token tk_(v) based on the decryption of the ciphertext CTx; and outputting a result of the query based on the determination.
 10. A non-transitory computer readable medium, having stored there on a cryptographic program that when executed causes a computer to generate a ciphertext ct_(x) in which attribute information x is set as a coefficient of a basis vector of a basis D; convert, using conversion information W the basis D of the generated ciphertext ct_(x) to a basis B so as to generate a ciphertext CT_(x); decrypting the generated ciphertext CT_(x) with a token tk_(v) in which predicate information v is set as a coefficient of a basis vector of a basis B* corresponding to the basis B, determining whether or not the ciphertext ct_(x) satisfies a condition which is set in the token tk_(v) based on the decryption of the ciphertext CTx; and outputting a result of the query based on the determination.
 11. The cryptographic system according to claim 1, wherein the cryptographic system implements an encryption scheme in a public key setting in which at least a part of basis vectors of the basis D is made public as a public key.
 12. The cryptographic system according to claim 1, wherein the cryptographic system implements an encryption scheme in a secret key setting in which at least a part of basis vectors of the basis D is distributed to the encryption device as a secret key. 